From 55d8e2db81f2e9b7dac8f881e66c1d07fd3cf02c Mon Sep 17 00:00:00 2001 From: fomojola Date: Thu, 30 Dec 2021 22:56:47 -0500 Subject: [PATCH] Formatting fixes --- plugins/nginx-vhosts/functions | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/nginx-vhosts/functions b/plugins/nginx-vhosts/functions index 5654bc315..ad6755672 100755 --- a/plugins/nginx-vhosts/functions +++ b/plugins/nginx-vhosts/functions @@ -130,10 +130,8 @@ restart_nginx() { declare desc="restart nginx for given distros" local PROXY_ENABLED="$(plugn trigger proxy-is-enabled "$APP")" local PROXY_TYPE="$(plugn trigger proxy-type "$APP")" - if [[ "$PROXY_ENABLED" == "true" ]]; then - if [[ "$PROXY_TYPE" == "nginx" ]]; then - fn-nginx-vhosts-nginx-init-cmd "reload" - fi + if [[ "$PROXY_ENABLED" == "true" ]] && [[ "$PROXY_TYPE" == "nginx" ]]; then + fn-nginx-vhosts-nginx-init-cmd "reload" fi }