Changing daemon user, dir ownership and updating packages

Stefan Bethke stb at lassitu.de
Tue Apr 13 08:24:14 UTC 2021


As the maintainer, I've received this bug report:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255009

If you'd like to run the daemon under a user different from the default git, you also need to change the ownership of the working directories, especially /var/*/gitea.

The expectation is that upgrading the package will not change the ownership of already existing directories. When installing a newer version of the package, pkg appears to reset the ownership to those specified in the package.

The pkg-plist has this:
@owner git
@group git
@dir /var/db/gitea
@dir /var/log/gitea
@dir /var/run/gitea

I believe this to be best practice. Is there a better way to have pkg create these dirs if they're missing, but not touch them if they are there already?


Stefan

--
Stefan Bethke <stb at lassitu.de>   Fon +49 151 14070811

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20210413/8a64dd85/attachment.sig>


More information about the freebsd-ports mailing list