Formatting fixes

This commit is contained in:
fomojola
2021-12-30 22:56:47 -05:00
committed by GitHub
parent c209787de8
commit 55d8e2db81

View File

@@ -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
}