Merge pull request #4988 from fomojola/patch-4

Conditionally restart NGINX
This commit is contained in:
Jose Diaz-Gonzalez
2021-12-31 11:43:12 -05:00
committed by GitHub

View File

@@ -128,7 +128,11 @@ validate_nginx() {
restart_nginx() {
declare desc="restart nginx for given distros"
fn-nginx-vhosts-nginx-init-cmd "reload"
local PROXY_ENABLED="$(plugn trigger proxy-is-enabled "$APP")"
local PROXY_TYPE="$(plugn trigger proxy-type "$APP")"
if [[ "$PROXY_ENABLED" == "true" ]] && [[ "$PROXY_TYPE" == "nginx" ]]; then
fn-nginx-vhosts-nginx-init-cmd "reload"
fi
}
nginx_logs() {