update del-alias to match exact alias when using sed

This commit is contained in:
Nicolas Roman 2019-04-03 11:15:51 +02:00
parent 33d071edeb
commit ac1bb7d3f1
1 changed files with 1 additions and 1 deletions

View File

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