refactor: use the properties system instead of the data dir for tracking whether a proxy should be stopped or started
This commit is contained in:
@@ -8,7 +8,7 @@ trigger-caddy-pre-restore() {
|
||||
declare desc="pre-restore the caddy proxy"
|
||||
declare trigger="install"
|
||||
|
||||
if [[ ! -f "${DOKKU_LIB_ROOT}/data/caddy/caddy.started" ]]; then
|
||||
if [[ "$(fn-plugin-property-get "caddy" "--global" "proxy-status")" == "stopped" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user