nixos/tests/gitdaemon: fix user and group (#340517)

This commit is contained in:
Peder Bergebakken Sundt 2024-09-13 16:39:46 +02:00 committed by GitHub
commit 01f064c99c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ in {
systemd.tmpfiles.rules = [
# type path mode user group age arg
" d /git 0755 root root - -"
" d /git 0755 git git - -"
];
services.gitDaemon = {
@ -56,6 +56,10 @@ in {
"rm -r /project",
)
# Change user/group to default daemon user/group from module
# to avoid "fatal: detected dubious ownership in repository at '/git/project.git'"
server.succeed("chown git:git -R /git/project.git")
with subtest("git daemon starts"):
server.wait_for_unit("git-daemon.service")