commit 3f3affbbf43c1184878950b1202dfa45cb081962
parent be1288f831e5d540c48942fa401b7b2d4286b9e6
Author: Matthias Jaros <jaros@mailbox.org>
Date: Sun, 19 Oct 2025 20:08:16 +0200
Added environment parsing of repos and users
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
@@ -8,6 +8,7 @@ services:
- "2222:22"
restart: no
environment:
+ - GIT_UID=1000
- USER_PASS=pass
- REPO_PASS=/pass.git:pass
volumes:
diff --git a/init b/init
@@ -92,6 +92,10 @@ for repo in (set -n | string match -r "^REPO_\S+")
set repos $repos (eval echo \$$repo)
end
+if set -q $_flag_g
+ set GIT_UID $_flag_g
+end
+
# Setup users
adduser git -u $GIT_UID -D --shell "/usr/bin/git-shell"
for user in $users