update del-alias to match exact alias when using sed
This commit is contained in:
parent
33d071edeb
commit
ac1bb7d3f1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue