dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modification : vm_hosted -> etc/sv/*/{,log/}run .
[lhc/ateliers.git]
/
etc
/
sv
/
lhc-remorque
/
run
diff --git
a/etc/sv/lhc-remorque/run
b/etc/sv/lhc-remorque/run
index
0f2c6bb
..
0241c21
100755
(executable)
--- a/
etc/sv/lhc-remorque/run
+++ b/
etc/sv/lhc-remorque/run
@@
-1,9
+1,22
@@
#!/bin/sh -eux
exec 2>&1
sv=${PWD#/etc/sv/}
#!/bin/sh -eux
exec 2>&1
sv=${PWD#/etc/sv/}
+home=~www/pub/"$sv"
+
/usr/bin/sv -w 3 start sshd
/usr/bin/sv -w 3 start sshd
+
+getent passwd fcgi-"$sv" >/dev/null ||
+adduser fcgi-"$sv" \
+ --disabled-login \
+ --disabled-password \
+ --group \
+ --home "$home" \
+ --shell /bin/false \
+ --system
+
install -d -m 1771 -o root -g root \
/run/spawn-fcgi
install -d -m 1771 -o root -g root \
/run/spawn-fcgi
+
exec /usr/bin/spawn-fcgi \
-u fcgi-"$sv" \
-g fcgi-"$sv" \
exec /usr/bin/spawn-fcgi \
-u fcgi-"$sv" \
-g fcgi-"$sv" \