summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorGravatar Matthias Jaros <jarlucmat@mailbox.org>2025-10-19 20:08:16 +0200
committerGravatar Matthias Jaros <jarlucmat@mailbox.org>2025-10-19 20:08:38 +0200
commit42b88ca02fe5bb5c1cf00addb48b9d1c0f23d930 (patch)
tree581e9050a056581d47feb8e62ccf5d57ce6aa156 /init
parent5e938e957d190ee5732f953ff3c2a71bf6c5fea9 (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