summaryrefslogtreecommitdiff
path: root/init
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 /init
parent17ee046b844bd418cd58cc7dfbcd8c5bdb5b179a (diff)
Added environment parsing of repos and users
Diffstat (limited to 'init')
-rwxr-xr-xinit4
1 files changed, 4 insertions, 0 deletions
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