Skip to content

Commit

Permalink
Merge pull request #401 from sbt/fix/bashscript-location
Browse files Browse the repository at this point in the history
Not hardcoding bashscript config location #398
  • Loading branch information
muuki88 committed Nov 7, 2014
2 parents dc24421 + 8b0f4ae commit 7139ba1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ object JavaServerAppPackaging extends AutoPlugin {
},
makeEtcDefault <<= (packageName in Linux, target in Universal, linuxEtcDefaultTemplate, linuxScriptReplacements)
map makeEtcDefaultScript,
linuxPackageMappings <++= (makeEtcDefault, packageName in Linux) map { (conf, name) =>
conf.map(c => LinuxPackageMapping(Seq(c -> ("/etc/default/" + name)),
LinuxFileMetaData(Users.Root, Users.Root, "644")).withConfig()).toSeq
linuxPackageMappings <++= (makeEtcDefault, bashScriptConfigLocation) map { (conf, configLocation) =>
configLocation.flatMap { path =>
conf.map(c => LinuxPackageMapping(Seq(c -> path), LinuxFileMetaData(Users.Root, Users.Root, "644")).withConfig())
}.toSeq
}

)
Expand Down

0 comments on commit 7139ba1

Please sign in to comment.