From f0e741ee1c7bc254717e1ad41f3885b99b57f2f6 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Wed, 19 Aug 2020 14:17:10 +0200 Subject: [PATCH] Reverting back wrong merged code from PR --- bin/v-restart-proxy | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/bin/v-restart-proxy b/bin/v-restart-proxy index dd593db44..ca63c16d8 100644 --- a/bin/v-restart-proxy +++ b/bin/v-restart-proxy @@ -49,20 +49,8 @@ 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