Skip to content
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

appUser and appGroup now correctly own the installation directory #143

Merged

Conversation

aparkinson
Copy link
Contributor

  • appGroup has been added
  • create install directory so it gets assigned the correct user and group ownership

@@ -63,6 +63,13 @@ object JavaAppPackaging {
for {
s <- script.toSeq
} yield s -> ("bin/" + name + ".bat")
},
linuxPackageMappings in Debian <+= (normalizedName, defaultLinuxInstallLocation, target in Debian, appUser in Linux, appGroup in Linux) map {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only in Debian because RPM handles things differently, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I think this should also be in the RPM side....

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be on the RPM side and I started going down that route but ended up taking the simple option as this is really needed for my previous PR

@muuki88
Copy link
Contributor

muuki88 commented Jan 31, 2014

LGTM at first sight. I hopefully can give it a try this weekend. After we merged this, I try to clean up the postinst and postrm files.

@jsuereth
Copy link
Member

Yeah, LGTM minus the one oddity of owning the linu package.

jsuereth added a commit that referenced this pull request Jan 31, 2014
…talldir

appUser and appGroup now correctly own the installation directory
@jsuereth jsuereth merged commit c038753 into sbt:master Jan 31, 2014
@jsuereth
Copy link
Member

DOH - Meant to wait for ocnfirmation on the owning directory first. Will try to cleanup soon.

@aparkinson
Copy link
Contributor Author

@muuki88 what changes are you thinking for postinst and postrm files?

I know user and group creation needs tightening up due to edge cases around appUser, appGroup, and daemonUser

@muuki88
Copy link
Contributor

muuki88 commented Jan 31, 2014

A few things

  1. Create one template were a the other stuff is merged in
  2. Use the bash scripts described on debian.org with some changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants