From c5847184c090127678824eafb0308393216e5a7d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 10 Mar 2025 12:50:25 -0400 Subject: [PATCH] fix: call post-domains-update when domains are enabled/disabled for an app --- plugins/domains/functions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/domains/functions b/plugins/domains/functions index 771303832..0798f48f3 100755 --- a/plugins/domains/functions +++ b/plugins/domains/functions @@ -68,6 +68,9 @@ disable_app_vhost() { [[ "$RESTART_APP" == "--no-restart" ]] && local CONFIG_SET_ARGS=$RESTART_APP DOKKU_QUIET_OUTPUT=1 config_set $CONFIG_SET_ARGS $APP NO_VHOST=1 + if [[ "$RESTART_APP" == "--no-restart" ]]; then + plugn trigger post-domains-update "$APP" "disable" + fi } domains_setup() { @@ -247,6 +250,9 @@ enable_app_vhost() { plugn trigger pre-enable-vhost "$APP" [[ "$RESTART_APP" == "--no-restart" ]] && local CONFIG_SET_ARGS=$RESTART_APP DOKKU_QUIET_OUTPUT=1 config_set $CONFIG_SET_ARGS "$APP" NO_VHOST=0 + if [[ "$RESTART_APP" == "--no-restart" ]]; then + plugn trigger post-domains-update "$APP" "enable" + fi } get_app_domains() {