summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-19 20:08:16 +0200
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-19 20:08:38 +0200
commit5313e8162d4cdd6a3b9ef955f3eb09b77f2e9437 (patch)
tree581e9050a056581d47feb8e62ccf5d57ce6aa156
parent17ee046b844bd418cd58cc7dfbcd8c5bdb5b179a (diff)
Added environment parsing of repos and users
-rw-r--r--docker-compose.yml1
-rwxr-xr-xinit4
2 files changed, 5 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index c353e7f..037b83f 100644
--- 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
index 50a2e27..44f46e3 100755
--- 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