From ac1bb7d3f188e3e3fcd0f571e4c6976e679626ad Mon Sep 17 00:00:00 2001 From: Nicolas Roman Date: Wed, 3 Apr 2019 11:15:51 +0200 Subject: [PATCH] update del-alias to match exact alias when using sed --- 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 9c63351..c2bacec 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -842,7 +842,7 @@ op_aliasdel() { vhost_file="${VHOST_PATH}/${vhost}" if [ -f "${vhost_file}" ]; then - sed -i -e "/ServerAlias $alias/d" "${vhost_file}" --follow-symlinks + sed -i -e "/ServerAlias "$alias"$/d" "${vhost_file}" --follow-symlinks else echo "VHost file \`${vhost_file}' not found'" >&2 return 1