-
Notifications
You must be signed in to change notification settings - Fork 2.5k
gogs: fix directories ownership (runit service) #571
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
Conversation
|
Please increase the revision of the package 👍 |
|
I don't think its a good idea to recursively chown the home directory each time the service starts. |
|
True that if the I reverted my changes and just added the originally missing chown (for I also increased the revision number in the template. |
|
But still, why would the home directory owned by root, shouldn't this be fixed at the root and not while starting the service? |
|
I'm not sure I understand your question, but I will try to answer by clearing things up.
The home directory here is actually
After looking into other packages, it doesn't look like an uncommon thing to do. This is my first contribution, so I get inspired by others and try to do minimal changes :) That said, it could be improved by a simple test if the folder exists. The I will be on irc from now on, if needed. |
There is one more potential issue: Is it supposed to stay this way ? |
srcpkgs/gogs/INSTALL
Outdated
| post) | ||
| if [ "$UPDATE" = "no" ]; then | ||
| chown gogs:gogs etc/gogs.ini | ||
| chown gogs:gogs /etc/gogs/conf.ini |
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.
Paths in INSTALL scripts must be relative in case xbps-install is used with --rootdir <PATH> and chroot(2) isn't available. xbps chdirs to the rootdir in such a case.
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.
Done!
|
ping |
With the current
runfile,gogsis unable to start because its home directory is owned byroot. It should be owned by the usergogsas the program needs to create a.gitconfigfile in there.