refactor: standardize trigger code
This commit is contained in:
1 parent
4a60497d3e
commit
7357579af2
63 files changed
+382
-329
No files matched your search
@@ -5,13 +5,14 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/config/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
||||
|
||||
nginx_pre_enable_vhost_trigger() {
|
||||
trigger-nginx-vhosts-pre-enable-vhost() {
|
||||
declare desc="unset port prior to vhosts being enabled"
|
||||
local trigger="nginx_pre_enable_vhost_trigger"
|
||||
local APP="$1"
|
||||
declare trigger="pre-enable-vhost"
|
||||
declare APP="$1"
|
||||
|
||||
if [[ "$(get_app_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
|
||||
fi
|
||||
}
|
||||
|
||||
nginx_pre_enable_vhost_trigger "$@"
|
||||
trigger-nginx-vhosts-pre-enable-vhost "$@"
|
||||
Reference in new issue
Block a user