From 95108897b0d88d7fdd66bf4f6c8936d2d1dba4f9 Mon Sep 17 00:00:00 2001 From: William Hirigoyen Date: Fri, 1 Dec 2023 17:15:35 +0100 Subject: [PATCH] Fix remaining test --- scripts/web-add.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 224b2b1..5ec23ba 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -766,7 +766,7 @@ op_del() { # Deactivate web vhost (apache or nginx) if [ "$WEB_SERVER" == "apache" ]; then - if a2query -s test12 >/dev/null 2&>1; then + if a2query -s "${login}" >/dev/null 2&>1; then a2dissite "${login}.conf" fi rm -f /etc/apache2/sites-available/"$login.conf"