From b5676c8ce677843063f3d131745c5af3c09bba8d Mon Sep 17 00:00:00 2001 From: gyurix Date: Mon, 26 May 2025 12:29:33 +0200 Subject: [PATCH] Allow domain configuration deletion in Nginx script --- scripts/nginx_config_create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nginx_config_create.sh b/scripts/nginx_config_create.sh index 6780a5e..3f298c0 100755 --- a/scripts/nginx_config_create.sh +++ b/scripts/nginx_config_create.sh @@ -28,7 +28,7 @@ if [[ "$LOCAL_NAME" == "" || "$LOCAL_NAME" == "null" ]]; then fi RELOAD_LOCATIONS="" -if [ -n "$2" ]; then +if [ -n "$2" ] || [ "$OPERATION" == "DELETE" ]; then echo "$DOMAIN_NAME DELETED" rm $DOMAIN_NAME.conf exit