Skip to content

Commit 7eb7a81

Browse files
committed
delete config only when there is no domain
1 parent 8cabb54 commit 7eb7a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ del_web_config() {
271271
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
272272
sed -i "$top_line,$bottom_line d" $conf
273273

274-
web_domain=$(grep $domain $USER_DATA/web.conf |wc -l)
274+
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
275275
if [ "$web_domain" -eq '0' ]; then
276276
sed -i "/.*\/$user\/.*$1.conf/d" /etc/$1/conf.d/vesta.conf
277277
rm -f $conf

0 commit comments

Comments
 (0)