From 7eb7a81c0ac80afa53be9474089abd02dcd2d54d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 8 Oct 2016 13:49:41 +0300 Subject: [PATCH] delete config only when there is no domain --- func/domain.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/domain.sh b/func/domain.sh index c5736f2a9..1bc6f10ba 100644 --- a/func/domain.sh +++ b/func/domain.sh @@ -271,7 +271,7 @@ del_web_config() { get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf sed -i "$top_line,$bottom_line d" $conf - web_domain=$(grep $domain $USER_DATA/web.conf |wc -l) + web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l) if [ "$web_domain" -eq '0' ]; then sed -i "/.*\/$user\/.*$1.conf/d" /etc/$1/conf.d/vesta.conf rm -f $conf