feat: use ports-clear plugn trigger to manage clearing the port map
This removes any access to the underlying implementation for port map clearing, which will make it easier to refactor the actual clearing.
This commit is contained in:
1 parent
fb9d77878d
commit
1431724b85
12 files changed
+45
-8
No files matched your search
@@ -10,7 +10,8 @@ trigger-nginx-vhosts-pre-disable-vhost() {
|
||||
declare APP="$1"
|
||||
|
||||
if [[ "$(plugn trigger proxy-type "$APP")" == "nginx" ]]; then
|
||||
DOKKU_QUIET_OUTPUT=1 config_unset --no-restart "$APP" DOKKU_PROXY_PORT DOKKU_PROXY_SSL_PORT DOKKU_PROXY_PORT_MAP
|
||||
DOKKU_QUIET_OUTPUT=1 config_unset --no-restart "$APP" DOKKU_PROXY_PORT DOKKU_PROXY_SSL_PORT
|
||||
plugn trigger ports-clear "$APP"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,8 @@ trigger-nginx-vhosts-pre-enable-vhost() {
|
||||
declare APP="$1"
|
||||
|
||||
if [[ "$(plugn trigger proxy-type "$APP")" == "nginx" ]]; then
|
||||
DOKKU_QUIET_OUTPUT=1 config_unset --no-restart "$APP" DOKKU_PROXY_PORT DOKKU_PROXY_SSL_PORT DOKKU_PROXY_PORT_MAP
|
||||
DOKKU_QUIET_OUTPUT=1 config_unset --no-restart "$APP" DOKKU_PROXY_PORT DOKKU_PROXY_SSL_PORT
|
||||
plugn trigger ports-clear "$APP"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user