Ajout : vm_hosted : lhc-remorque .
[lhc/ateliers.git] / etc / sv / lhc-remorque / configure.sh
diff --git a/etc/sv/lhc-remorque/configure.sh b/etc/sv/lhc-remorque/configure.sh
new file mode 100644 (file)
index 0000000..67c6d37
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh -eux
+rule adduser fcgi-"$sv" \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home /home/www/pub/"$sv" \
+ --shell /bin/false \
+ --system
+rule adduser log-fcgi-"$sv" \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home /home/www/log/spawn-fcgi/"$sv" \
+ --shell /bin/false \
+ --system
+sudo install -d -m 770 -o log-fcgi-"$sv" -g log-fcgi-"$sv" \
+ /home/www/log/"$sv"/spawn-fcgi