mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
fix for multiple init scripts
This commit is contained in:
parent
8a3babe406
commit
34c6ee93b9
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
|
|||
fi
|
||||
|
||||
# Restart system
|
||||
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
|
||||
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d / |head -n1)
|
||||
if [ -z "$php_fpm" ]; then
|
||||
service $WEB_BACKEND restart >/dev/null 2>&1
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue