chore: minor cleanup
This commit is contained in:
committed by
Michael Hobbs
parent
b8a4152e10
commit
b0afa778fb
@@ -6,9 +6,12 @@ source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
|||||||
|
|
||||||
nginx_post_domains_update() {
|
nginx_post_domains_update() {
|
||||||
declare desc="calls nginx build_config when domains are updated"
|
declare desc="calls nginx build_config when domains are updated"
|
||||||
local trigger="nginx_post_domains_update"
|
declare trigger="nginx_post_domains_update"
|
||||||
if [[ "$(get_app_proxy_type "$1")" == "nginx" ]]; then
|
declare APP="$1"
|
||||||
nginx_build_config "$1"
|
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||||
|
|
||||||
|
if [[ "$(get_app_proxy_type "$APP")" == "nginx" ]]; then
|
||||||
|
nginx_build_config "$APP"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,11 @@ source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
|||||||
|
|
||||||
nginx_proxy_build_config() {
|
nginx_proxy_build_config() {
|
||||||
declare desc="build nginx config to proxy app containers from command line"
|
declare desc="build nginx config to proxy app containers from command line"
|
||||||
|
declare trigger="nginx_proxy_build_config"
|
||||||
declare APP="$1"
|
declare APP="$1"
|
||||||
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||||
|
|
||||||
if [[ "$(get_app_proxy_type "$1")" = "nginx" ]]; then
|
if [[ "$(get_app_proxy_type "$APP")" = "nginx" ]]; then
|
||||||
plugn trigger network-build-config "$APP"
|
plugn trigger network-build-config "$APP"
|
||||||
nginx_build_config "$APP"
|
nginx_build_config "$APP"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user