Skip to content

Commit

Permalink
Use defaultLinuxLogsLocation for /var/log
Browse files Browse the repository at this point in the history
Log directory 'logs' in the installation directory is soft-linked to
/var/log/app-name/. Instead of hard coding /var/log use the already
provided variable defaultLinuxLogsLocation.
  • Loading branch information
hfs committed Feb 2, 2014
1 parent 484b9b0 commit 45b71f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ object JavaServerAppPackaging {
d.mkdirs()
LinuxPackageMapping(Seq(d -> (logsDir + "/" + name)), LinuxFileMetaData(user, group))
},
linuxPackageSymlinks in Debian <+= (normalizedName, defaultLinuxInstallLocation) map {
(name, install) => LinuxSymlink(install + "/" + name + "/logs", "/var/log/" + name)
linuxPackageSymlinks in Debian <+= (normalizedName, defaultLinuxInstallLocation, defaultLinuxLogsLocation) map {
(name, install, logsDir) => LinuxSymlink(install + "/" + name + "/logs", logsDir + "/" + name)
},

// === Maintainer scripts ===
Expand Down

0 comments on commit 45b71f2

Please sign in to comment.