fix: do not start proxy implementations during server restore if they weren't manually started via the :start command

This change ensures users don't have unnecessary proxies starting on their servers and potentially have apps not routing correctly due to another proxy squatting on a port.

Closes #5846
This commit is contained in:
Jose Diaz-Gonzalez
2023-07-01 06:57:57 -04:00
parent ef25a9b0d8
commit bbbe0e763d
4 changed files with 4 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ trigger-caddy-pre-restore() {
declare desc="pre-restore the caddy proxy"
declare trigger="install"
if [[ "$(fn-plugin-property-get "caddy" "--global" "proxy-status")" == "stopped" ]]; then
if [[ "$(fn-plugin-property-get "caddy" "--global" "proxy-status")" != "started" ]]; then
return
fi

View File

@@ -8,7 +8,7 @@ trigger-haproxy-pre-restore() {
declare desc="pre-restore the caddy proxy"
declare trigger="install"
if [[ "$(fn-plugin-property-get "haproxy" "--global" "proxy-status")" == "stopped" ]]; then
if [[ "$(fn-plugin-property-get "haproxy" "--global" "proxy-status")" != "started" ]]; then
return
fi

View File

@@ -8,7 +8,7 @@ trigger-nginx-pre-restore() {
declare desc="pre-restore the nginx proxy"
declare trigger="install"
if [[ "$(fn-plugin-property-get "nginx" "--global" "proxy-status")" == "stopped" ]]; then
if [[ "$(fn-plugin-property-get "nginx" "--global" "proxy-status")" != "started" ]]; then
return
fi

View File

@@ -8,7 +8,7 @@ trigger-traefik-pre-restore() {
declare desc="pre-restore the traefik proxy"
declare trigger="install"
if [[ "$(fn-plugin-property-get "traefik" "--global" "proxy-status")" == "stopped" ]]; then
if [[ "$(fn-plugin-property-get "traefik" "--global" "proxy-status")" != "started" ]]; then
return
fi