From a81be287c44a3e364ac6ccdd849eaee07811e4a1 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 19 Apr 2016 17:52:05 +0200 Subject: [PATCH] Fix #1768: add/del-alias -> auto-suffix .conf --- scripts/web-add.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/web-add.sh b/scripts/web-add.sh index 992ddd5..58e949d 100755 --- a/scripts/web-add.sh +++ b/scripts/web-add.sh @@ -438,7 +438,7 @@ op_listvhost() { op_aliasadd() { if [ $# -eq 2 ]; then - vhost=$1 + vhost="${1}.conf" alias=$2 [ -f $VHOST_PATH/$vhost ] && sed -i -e "s/\(ServerName .*\)/\1\n\tServerAlias $alias/" $VHOST_PATH/$vhost --follow-symlinks @@ -452,7 +452,7 @@ op_aliasadd() { op_aliasdel() { if [ $# -eq 2 ]; then - vhost=$1 + vhost="${1}.conf" alias=$2 [ -f $VHOST_PATH/$vhost ] && sed -i -e "/ServerAlias $alias/d" $VHOST_PATH/$vhost --follow-symlinks