X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fsv%2Fnginx%2Flocal.sh;h=0b014f7b83db245eb18b5087720974896720ba10;hb=41902057ecac8fa4dbe7d140a87ac220e3302bf1;hp=dd3bd8e58afae7a2c72fb79aa25c0e3acada1cc6;hpb=3ad6118386977e346d81042e924e5db9c5f15b7d;p=lhc%2Fateliers.git diff --git a/etc/sv/nginx/local.sh b/etc/sv/nginx/local.sh index dd3bd8e..0b014f7 100644 --- a/etc/sv/nginx/local.sh +++ b/etc/sv/nginx/local.sh @@ -1,5 +1,5 @@ "$tool"/local/runit-sv-configure php5-fpm '*' -"$tool"/local/runit-sv-restart php5-fpm +"$tool"/local/runit-sv-start php5-fpm "$tool"/local/apt-get-install nginx spawn-fcgi fcgiwrap "$tool"/local/insserv-remove nginx "$tool"/local/insserv-remove fcgiwrap @@ -86,7 +86,8 @@ for site in $(find "$tool"/etc/nginx/site.d \ } EOF ( - test ! -r "$tool"/etc/nginx/site.d/"$site"/configure.sh || - . "$tool"/etc/nginx/site.d/"$site"/configure.sh || return 1 + cd / + test ! -r "$tool"/etc/nginx/site.d/"$site"/local.sh || + . "$tool"/etc/nginx/site.d/"$site"/local.sh || return 1 ) done