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:
parent
c551f35b03
commit
065cb64d0a
1 changed files with 4 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue