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 : etc/sv/ : polissage et généralise un peu.
[lhc/ateliers.git]
/
etc
/
sv
/
fcgi.80.git.heureux-cyclage.org
/
configure
diff --git
a/etc/sv/fcgi.80.git.heureux-cyclage.org/configure
b/etc/sv/fcgi.80.git.heureux-cyclage.org/configure
index
c01e6d0
..
ee22eba
100755
(executable)
--- a/
etc/sv/fcgi.80.git.heureux-cyclage.org/configure
+++ b/
etc/sv/fcgi.80.git.heureux-cyclage.org/configure
@@
-1,11
+1,15
@@
#!/bin/sh -efux
#!/bin/sh -efux
-run_user=fcgi.80.git.heureux-cyclage.org
-id "$run_user" >/dev/null ||
+sv=$(basename "$(cd "$(dirname "$0")" && cd -)")
+IFS=. read -r service site <<-EOF
+ $sv
+ EOF
+user=$sv
+getent passwd "$user" >/dev/null ||
sudo adduser \
--disabled-login \
--disabled-password \
--group \
sudo adduser \
--disabled-login \
--disabled-password \
--group \
- --home /
no-home
\
+ --home /
home/www/pub/"$site"
\
--shell /bin/false \
--system \
--shell /bin/false \
--system \
- "$
run_
user"
+ "$user"