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/nginx/site.d/lhc-stats/site.conf : intègre de la conf de piwik...
[lhc/ateliers.git]
/
etc
/
sv
/
nginx
/
configure.sh
diff --git
a/etc/sv/nginx/configure.sh
b/etc/sv/nginx/configure.sh
index
2cfa7f7
..
a44c647
100644
(file)
--- a/
etc/sv/nginx/configure.sh
+++ b/
etc/sv/nginx/configure.sh
@@
-53,7
+53,7
@@
for site in $(find "$tool"/etc/nginx/site.d \
/etc/nginx/site.d/"$site"
sudo install -d -m 770 -o www -g www \
/etc/nginx/x509.d/"$site"
/etc/nginx/site.d/"$site"
sudo install -d -m 770 -o www -g www \
/etc/nginx/x509.d/"$site"
- test -L /home/www/pub/"$site" ||
+
sudo
test -L /home/www/pub/"$site" ||
sudo install -d -m 2770 -o www-"$site" -g www-"$site" \
/home/www/pub/"$site"
sudo adduser www-data www-"$site"
sudo install -d -m 2770 -o www-"$site" -g www-"$site" \
/home/www/pub/"$site"
sudo adduser www-data www-"$site"
@@
-61,6
+61,10
@@
for site in $(find "$tool"/etc/nginx/site.d \
sudo install -m 660 -o www -g www \
"$tool"/etc/nginx/site.d/"$site"/local.conf \
/etc/nginx/site.d/"$site"/local.conf
sudo install -m 660 -o www -g www \
"$tool"/etc/nginx/site.d/"$site"/local.conf \
/etc/nginx/site.d/"$site"/local.conf
+ test ! -e "$tool"/etc/nginx/site.d/"$site"/http.conf ||
+ sudo install -m 660 -o www -g www \
+ "$tool"/etc/nginx/site.d/"$site"/http.conf \
+ /etc/nginx/site.d/"$site"/http.conf
if test -L "$tool"/etc/nginx/site.d/"$site"/site.conf
then
sudo cp --force --preserve=links --no-dereference \
if test -L "$tool"/etc/nginx/site.d/"$site"/site.conf
then
sudo cp --force --preserve=links --no-dereference \