From edfd8ca19101e0c5c99fb799f05bd404c6d2287b Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 22 Jul 2017 20:47:05 +0200 Subject: krebs git: fix initial chown --- krebs/3modules/git.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/krebs/3modules/git.nix b/krebs/3modules/git.nix index 884108ebb..93211d9d4 100644 --- a/krebs/3modules/git.nix +++ b/krebs/3modules/git.nix @@ -569,7 +569,8 @@ let if ! test -d "$repodir"; then mkdir -m "$mode" "$repodir" git init --bare --template=/var/empty "$repodir" - chown -R git:nogroup "$repodir" + # TODO fix correctly with stringAfter + chown -R ${toString config.users.users.git.uid}:nogroup "$repodir" fi ln -s ${hooks} "$repodir/hooks" '' -- cgit v1.2.3