Skip to content

Commit

Permalink
Merge pull request #16 from myoung34/bugfix/mirth_340
Browse files Browse the repository at this point in the history
Added bugfix for 3.4.0.8000.b1959 mirth version
  • Loading branch information
myoung34 committed May 26, 2016
2 parents 63604c4 + 8b822c8 commit 5ab92e9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions manifests/mirthconnect.pp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,23 @@
file { '/opt/mirthconnect':
ensure => directory,
}

if($rpm_source =~ /3.4.0.8000.b1959/) {
file { '/tmp/mirth_340_fix.sh':
ensure => present,
before => Exec['set mirthconnect password'],
content => template('mirthconnect/mirth_340_fix.sh.erb'),
require => Package['mirthconnect'],
}

exec { 'fix mirth 3.4.0 install':
before => Exec['set mirthconnect password'],
command => 'bash /tmp/mirth_340_fix.sh',
creates => '/opt/mirthconnect/cli-lib/jersey-common-2.22.1.jar',
path => $::path,
require => File['/tmp/mirth_340_fix.sh'],
}
}
}
'yum': {
package { 'mirthconnect':
Expand Down
20 changes: 20 additions & 0 deletions templates/mirth_340_fix.sh.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# http://www.mirthcorp.com/community/issues/browse/MIRTH-3934
# http://www.mirthproject.org/community/forums/showthread.php?t=215925
cd /opt/mirthconnect/cli-lib
cp ../server-lib/javassist-3.19.0-GA.jar .
cp ../server-lib/donkey/guava-18.0.jar .
cp ../server-lib/javax/javax.annotation-api-1.2.jar .
cp ../server-lib/javax/javax.inject-2.4.0-b31.jar .
cp ../server-lib/javax/javax.ws.rs-api-2.0.1.jar .
cp ../server-lib/jersey/jersey-client-2.22.1.jar .
cp ../server-lib/jersey/jersey-common-2.22.1.jar .
cp ../server-lib/jersey/jersey-guava-2.22.1.jar .
cp ../server-lib/jersey/jersey-media-multipart-2.22.1.jar .
cp ../server-lib/jersey/jersey-proxy-client-2.22.1.jar .
cp ../server-lib/jersey/ext/hk2-api-2.4.0-b31.jar .
cp ../server-lib/jersey/ext/hk2-locator-2.4.0-b31.jar .
cp ../server-lib/jersey/ext/hk2-utils-2.4.0-b31.jar .
cp ../server-lib/jersey/ext/mimepull-1.9.6.jar .
cp ../server-lib/swagger/swagger-annotations-1.5.4.jar .
cp ../server-lib/swagger/ext/reflections-0.9.10.jar .

0 comments on commit 5ab92e9

Please sign in to comment.