mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Merge branch 'pr/86'
This commit is contained in:
commit
83104523a0
4 changed files with 28 additions and 2 deletions
12
bin/v-restart-proxy
Executable file → Normal file
12
bin/v-restart-proxy
Executable file → Normal file
|
@ -49,8 +49,20 @@ if [ -z "$PROXY_SYSTEM" ] || [ "$PROXY_SYSTEM" = 'remote' ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
|
||||
if [ -f "/usr/local/vesta/web/inc/nginx_proxy" ]; then
|
||||
|
||||
# if vesta is behind default nginx, restart in background with 15 sec delay
|
||||
# background restart
|
||||
if [ "$1" = 'background' ]; then
|
||||
# Restart system
|
||||
sleep 25
|
||||
service $PROXY_SYSTEM restart >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
send_email_report
|
||||
check_result $E_RESTART "$PROXY_SYSTEM restart failed"
|
||||
fi
|
||||
|
||||
# if vesta is behind default nginx, restart in background with 15 sec delay
|
||||
# background restart
|
||||
if [ "$1" = 'background' ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue