From 065cb64d0a844d7806880304ef242b94c19c18e3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 18 Dec 2019 20:24:20 +0000 Subject: fix(cgit-taz): Create users required by SSH in the container This might not actually work because SSH will have issues with key permissions, presumably. --- services/cgit-taz/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/cgit-taz/default.nix') diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix index b372792322..2311a100d1 100644 --- a/services/cgit-taz/default.nix +++ b/services/cgit-taz/default.nix @@ -56,6 +56,10 @@ let in writeShellScriptBin "cgit-launch" '' ${coreutils}/bin/mkdir -p /srv/git + # Create users required by SSH + echo 'somebody:x:1000:nixbld' >> /etc/group + echo 'somebody:x:1000:1000:somebody:/tmp:/bin/bash' >> /etc/passwd + # The SSH keys are placed in the container by Kubernetes. export GIT_SSH_COMMAND="${openssh}/bin/ssh -F /var/cgit/ssh_config" ${git}/bin/git clone --mirror \ -- cgit 1.4.1