Ajout : vm_remote : rule_gpg .
[lhc/ateliers.git] / etc / sv / nginx / configure.sh
index 2cfa7f7..a44c647 100644 (file)
@@ -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"
-       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"
@@ -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
+       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 \