diff options
| author | 2025-10-19 20:08:16 +0200 | |
|---|---|---|
| committer | 2025-10-19 20:08:38 +0200 | |
| commit | 5313e8162d4cdd6a3b9ef955f3eb09b77f2e9437 (patch) | |
| tree | 581e9050a056581d47feb8e62ccf5d57ce6aa156 | |
| parent | 17ee046b844bd418cd58cc7dfbcd8c5bdb5b179a (diff) | |
Added environment parsing of repos and users
| -rw-r--r-- | docker-compose.yml | 1 | ||||
| -rwxr-xr-x | init | 4 |
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: @@ -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 |
