mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
dynamic name for php-fpm service
This commit is contained in:
parent
741d44754d
commit
76d518bf86
2 changed files with 7 additions and 1 deletions
|
@ -50,7 +50,13 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
|
|||
fi
|
||||
|
||||
# Restart system
|
||||
service $WEB_BACKEND restart >/dev/null 2>&1
|
||||
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
|
||||
if [ -z "$php_fpm" ]; then
|
||||
service $WEB_BACKEND restart >/dev/null 2>&1
|
||||
else
|
||||
service $php_fpm restart >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
send_email_report
|
||||
check_result $E_RESTART "$WEB_BACKEND restart failed"
|
||||
|
|
0
bin/v-update-web-domain-ssl
Normal file → Executable file
0
bin/v-update-web-domain-ssl
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue