refactor: standardize trigger code

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-10 02:40:59 -05:00
parent 4a60497d3e
commit 7357579af2
63 changed files with 382 additions and 329 deletions

View File

@@ -7,8 +7,8 @@ source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
trigger-proxy-post-certs-remove() {
declare desc="unset port config vars after SSL cert is removed"
local trigger="nginx_post_certs_remove"
local APP="$1"
declare trigger="post-certs-remove"
declare APP="$1"
DOKKU_QUIET_OUTPUT=1 config_unset --no-restart "$APP" DOKKU_PROXY_SSL_PORT