summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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