Ajout : vm_hosted : rule_gitolite_configure .
[lhc/ateliers.git] / etc / sv / git-daemon.hc.9418.git.heureux-cyclage.org / run.sh
diff --git a/etc/sv/git-daemon.hc.9418.git.heureux-cyclage.org/run.sh b/etc/sv/git-daemon.hc.9418.git.heureux-cyclage.org/run.sh
new file mode 100644 (file)
index 0000000..c319358
--- /dev/null
@@ -0,0 +1,20 @@
+local run_user="$user"-daemon
+id "$run_user" >/dev/null ||
+sudo adduser \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home /home/git/pub \
+ --shell /bin/false \
+ --system \
+ "$run_user"
+log_user=git-daemon-log
+id "$log_user" >/dev/null ||
+sudo adduser \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home /home/git/log/git-daemon \
+ --shell /bin/false \
+ --system \
+ "$log_user"