chore: minor cleanup

This commit is contained in:
Jose Diaz-Gonzalez authored and Michael Hobbs committed 2017-10-02 15:05:13 -07:00
1 parent b8a4152e10
commit b0afa778fb
2 files changed
+8 -4

No files matched your search

+6 -3
View File
@@ -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
} }
+2 -1
View File
@@ -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