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:
Jose Diaz-Gonzalez committed 2022-11-29 01:38:36 -05:00
1 parent 6fed37b408
commit 5fed0c45ac
7 files changed
+15 -16

No files matched your search

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