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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user