fix: call post-domains-update when domains are enabled/disabled for an app

This commit is contained in:
Jose Diaz-Gonzalez
2025-03-10 12:50:25 -04:00
parent 70d2f24e1d
commit c5847184c0

View File

@@ -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() {