We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6d6e19 commit db4c2bcCopy full SHA for db4c2bc
func/domain.sh
@@ -271,8 +271,8 @@ del_web_config() {
271
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
272
sed -i "$top_line,$bottom_line d" $conf
273
274
- web_domains=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
275
- if [ "$web_domains" -eq '0' ]; then
+ web_domain=$(grep $domain $USER_DATA/web.conf |wc -l)
+ if [ "$web_domain" -eq '0' ]; then
276
sed -i "/.*\/$user\/.*$1.conf/d" /etc/$1/conf.d/vesta.conf
277
rm -f $conf
278
fi
0 commit comments