mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
fix for multiple php-fpm init scripts
This commit is contained in:
parent
80f65d54de
commit
d7eb12defa
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 -n 1)
|
||||
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