feat: add ability to disable vhosts for all apps

Closes #6967
This commit is contained in:
Jose Diaz-Gonzalez
2025-03-09 07:38:49 -04:00
parent 0249653e17
commit 70d2f24e1d
6 changed files with 73 additions and 14 deletions

View File

@@ -10,13 +10,8 @@ cmd-domains-clear() {
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
verify_app_name "$APP"
local APP_VHOST_PATH="$DOKKU_ROOT/$APP/VHOST"
rm -f "$APP_VHOST_PATH"
domains_setup "$APP"
plugn trigger post-domains-update "$APP" "clear"
dokku_log_info1 "Cleared domains in $APP"
[[ "$APP" == "--all" ]] || verify_app_name "$APP"
fn-domains-clear "$APP"
}
cmd-domains-clear "$@"

View File

@@ -10,8 +10,8 @@ cmd-domains-disable() {
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
verify_app_name "$APP"
domains_disable "$APP"
[[ "$APP" == "--all" ]] && verify_app_name "$APP"
fn-domains-disable "$APP"
}
cmd-domains-disable "$@"

View File

@@ -10,8 +10,8 @@ cmd-domains-enable() {
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
verify_app_name "$APP"
domains_enable "$APP"
[[ "$APP" == "--all" ]] && verify_app_name "$APP"
fn-domains-enable "$APP"
}
cmd-domains-enable "$@"