mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
fix: add missing trigger and use helper function for clearing vhost
This commit is contained in:
@@ -11,12 +11,10 @@ cmd-domains-reset() {
|
||||
declare APP="$1"
|
||||
|
||||
verify_app_name "$APP"
|
||||
local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
|
||||
|
||||
rm -f "$APP_VHOST_PATH"
|
||||
fn-domains-clear "$APP"
|
||||
domains_setup "$APP"
|
||||
plugn trigger post-domains-update "$APP" "reset"
|
||||
dokku_log_info1 "Reset domains for $APP"
|
||||
dokku_log_info1_quiet "Reset domains for $APP"
|
||||
}
|
||||
|
||||
cmd-domains-reset "$@"
|
||||
|
||||
@@ -12,6 +12,8 @@ cmd-domains-setup() {
|
||||
|
||||
verify_app_name "$APP"
|
||||
domains_setup "$APP"
|
||||
plugn trigger post-domains-update "$APP" "reset"
|
||||
dokku_log_info1_quiet "Setup domains for $APP"
|
||||
}
|
||||
|
||||
cmd-domains-setup "$@"
|
||||
|
||||
Reference in New Issue
Block a user