mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
nixos/tests/gitdaemon: fix user and group (#340517)
This commit is contained in:
commit
01f064c99c
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user