-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/var/log/app_name permissions fixed #111
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,9 +62,13 @@ object JavaServerAppPackaging { | |
s <- script.toSeq | ||
} yield LinuxPackageMapping(Seq(s -> path)).withPerms(permissions) | ||
}, | ||
// TODO the /var/log should be generalized like defaultLinuxInstallLocation | ||
linuxPackageMappings in Debian <+= (normalizedName) map { | ||
name => packageTemplateMapping("/var/log/" + name)() | ||
// TODO should we specify daemonGroup in configs? | ||
linuxPackageMappings in Debian <+= (normalizedName, defaultLinuxLogsLocation, target in Debian, daemonUser in Debian) map { | ||
(name, logsDir, target, user) => | ||
// create empty var/log directory | ||
val d = target / logsDir | ||
d.mkdirs() | ||
LinuxPackageMapping(Seq(d -> s"$logsDir/$name"), LinuxFileMetaData(user, user)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice. This now makes sense to me. Another question: IS this something we'd need for RPM packages too? I'd like to try to port your init.d stuff for RPM as well, if I can get a local CentOS machine running in time for testing before the next sbt-native-packager release. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know much about RPM. But I could check this tomorrow. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does string interpolation work in this build? On my system the build is set to scala 2.9.x? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think no. I forgot about 2.9. Excuse me, I'll fix Regards, Alexey
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DOH, good catch @muuki88. Still too many 0.12 users for us to mirate off of it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've already fix this in #110 ) |
||
}, | ||
linuxPackageSymlinks in Debian <+= (normalizedName, defaultLinuxInstallLocation) map { | ||
(name, install) => LinuxSymlink(install + "/" + name + "/logs", "/var/log/" + name) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somebody fixing my TODOs. Thanks :)