mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Reverting back wrong merged code from PR
This commit is contained in:
parent
83104523a0
commit
f0e741ee1c
1 changed files with 0 additions and 12 deletions
|
@ -49,20 +49,8 @@ if [ -z "$PROXY_SYSTEM" ] || [ "$PROXY_SYSTEM" = 'remote' ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -f "/usr/local/vesta/web/inc/nginx_proxy" ]; then
|
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
|
# if vesta is behind default nginx, restart in background with 15 sec delay
|
||||||
# background restart
|
# background restart
|
||||||
if [ "$1" = 'background' ]; then
|
if [ "$1" = 'background' ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue