Skip to content

Commit

Permalink
Not hardcoding bashscript config location #398
Browse files Browse the repository at this point in the history
  • Loading branch information
muuki88 committed Nov 3, 2014
1 parent 9724fbb commit 8496fae
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
},

// === /var/run/app pid folder ===
Expand Down

0 comments on commit 8496fae

Please sign in to comment.