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() {
declare desc="calls nginx build_config when domains are updated"
local trigger="nginx_post_domains_update"
if [[ "$(get_app_proxy_type "$1")" == "nginx" ]]; then
nginx_build_config "$1"
declare trigger="nginx_post_domains_update"
declare APP="$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
}