chore: remove deprecated nginx commands

This commit is contained in:
Jose Diaz-Gonzalez
2023-02-12 13:12:47 -05:00
parent 577aafb683
commit 59fde3a317
2 changed files with 5 additions and 12 deletions

View File

@@ -94,12 +94,7 @@ cmd-nginx-report-single() {
cmd-nginx-show-config() {
declare desc="display app nginx config"
declare cmd="nginx:show-config"
declare deprecated=true
[[ "$1" == "$cmd" ]] && shift 1
if [[ "$1" == "nginx:show-conf" ]]; then
dokku_log_warn "Deprecated: Please use nginx:show-config"
shift 1
fi
declare APP="$1"
verify_app_name "$APP"
@@ -133,12 +128,7 @@ cmd-nginx-stop() {
cmd-nginx-validate-config() {
declare desc="validates and optionally cleans up invalid nginx configurations"
declare cmd="nginx:validate-config"
declare deprecated=true
[[ "$1" == "$cmd" ]] && shift 1
if [[ "$1" == "nginx:validate" ]]; then
dokku_log_warn "Deprecated: Please use nginx:validate-config"
shift 1
fi
declare APP="$1" FLAG="$2"
validate_nginx "$APP" "$FLAG"