Allow domain configuration deletion in Nginx script
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-05-26 12:29:33 +02:00
parent 8f23ff58ac
commit b5676c8ce6

View File

@@ -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