about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-18T20·24+0000
committerVincent Ambo <tazjin@google.com>2019-12-18T20·24+0000
commit065cb64d0a844d7806880304ef242b94c19c18e3 (patch)
tree16a936b903b4b72ecf037880d0236ec7e43d024d
parentc551f35b03479e3cd02baca0f1c8c8e7a0f07f6f (diff)
fix(cgit-taz): Create users required by SSH in the container r/193
This might not actually work because SSH will have issues with key
permissions, presumably.
-rw-r--r--services/cgit-taz/default.nix4
1 files changed, 4 insertions, 0 deletions
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 \