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.
This commit is contained in:
Vincent Ambo 2019-12-18 20:24:20 +00:00
parent c551f35b03
commit 065cb64d0a

View file

@ -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 \