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 }