fix for multiple init scripts

This commit is contained in:
Serghey Rodin 2017-12-28 14:16:14 +02:00
commit c940632378

View file

@ -50,7 +50,7 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
fi fi
# Restart system # Restart system
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d / |head -n1) php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
if [ -z "$php_fpm" ]; then if [ -z "$php_fpm" ]; then
service $WEB_BACKEND restart >/dev/null 2>&1 service $WEB_BACKEND restart >/dev/null 2>&1
else else