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:
1 parent
6fed37b408
commit
5fed0c45ac
7 files changed
+15
-16
No files matched your search
@@ -8,7 +8,7 @@ trigger-nginx-pre-restore() {
|
||||
declare desc="pre-restore the nginx proxy"
|
||||
declare trigger="install"
|
||||
|
||||
if [[ ! -f "${DOKKU_LIB_ROOT}/data/nginx-vhosts/nginx.started" ]]; then
|
||||
if [[ "$(fn-plugin-property-get "nginx" "--global" "proxy-status")" == "stopped" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user