Skip to content

Commit

Permalink
Merge pull request #163 from mark0n/fixCLIpath
Browse files Browse the repository at this point in the history
Fix broken path for CLI jar file on Debian
  • Loading branch information
R. Tyler Croy committed Aug 25, 2014
2 parents f45dc97 + d38cd3e commit bf415fd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions manifests/cli.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,18 @@
fail("Use of private class ${name} by ${caller_module_name}")
}

$jar = '/usr/lib/jenkins/jenkins-cli.jar'
$extract_jar = 'unzip /usr/lib/jenkins/jenkins.war WEB-INF/jenkins-cli.jar'
case $::osfamily {
'Debian': {
$war = '/usr/share/jenkins/jenkins.war'
$jar = '/usr/share/jenkins/jenkins-cli.jar'
}
default: {
$war = '/usr/lib/jenkins/jenkins.war'
$jar = '/usr/lib/jenkins/jenkins-cli.jar'
}
}

$extract_jar = "unzip ${war} WEB-INF/jenkins-cli.jar"
$move_jar = "mv WEB-INF/jenkins-cli.jar ${jar}"
$remove_dir = 'rm -rf WEB-INF'

Expand Down

0 comments on commit bf415fd

Please sign in to comment.