Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2021 10:24:08 +0200
From:      Stefan Bethke <stb@lassitu.de>
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Changing daemon user, dir ownership and updating packages
Message-ID:  <FED3AEBB-69FF-4241-81F1-0F2580123946@lassitu.de>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_1FD54AA9-FC93-4A13-BD57-CF89CB53FF12
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

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

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@lassitu.de>   Fon +49 151 14070811


--Apple-Mail=_1FD54AA9-FC93-4A13-BD57-CF89CB53FF12
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEJ+hF98o4r3eU/HiPD885WK4W4sEFAmB1VSgACgkQD885WK4W
4sGjNwf9EmAnzEffQzs2QegMz3A1HEDmxziSAMiXycIim9VzTKd7B6eEvbiwGOIi
mAi6MSZcH/qa483GmC2w6UnZjZ/Z39pUL1Q2G0m/m1A19v+9P/ilGoY3iI+9ssAY
UHmbnAAWrlngFkfF6GxemySr86jaSI/zmmbwvnnW967I0FbVrSIyCuyfS/1qEyBW
yOruIVbd7CYTyEHFEpUHq05MDGDGeTCTt+yUrsBUkLHWJujTVfsz6hVXqMbAyjlj
ATMYakwQcr0r6jkhVj7LB1fFoUxw616ECcAkIgcrvxji/8TPW5Hqhfve0A6ZKBF1
ihfDglxVWLBg7xTgYb8/bNDnTwGFfQ==
=EaE8
-----END PGP SIGNATURE-----

--Apple-Mail=_1FD54AA9-FC93-4A13-BD57-CF89CB53FF12--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FED3AEBB-69FF-4241-81F1-0F2580123946>