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/nginx-vhosts/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
||||
|
||||
nginx_post_proxy_ports_update() {
|
||||
trigger-nginx-vhosts-post-proxy-ports-update() {
|
||||
declare desc="calls nginx build_config when domains are updated"
|
||||
local trigger="nginx_post_proxy_ports_update"
|
||||
local APP="$1" ACTION="$2"
|
||||
declare trigger="post-proxy-ports-update"
|
||||
declare APP="$1" ACTION="$2"
|
||||
|
||||
if [[ "$(get_app_proxy_type "$APP")" == "nginx" ]]; then
|
||||
nginx_build_config "$APP"
|
||||
fi
|
||||
}
|
||||
|
||||
nginx_post_proxy_ports_update "$@"
|
||||
trigger-nginx-vhosts-post-proxy-ports-update "$@"
|
||||
Reference in new issue
Block a user