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 7ec123a commit d942f85Copy full SHA for d942f85
func/domain.sh
@@ -287,10 +287,12 @@ del_web_config() {
287
fi
288
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
289
sed -i "$top_line,$bottom_line d" $conf
290
-
291
- web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
292
- if [ "$web_domain" -eq '0' ]; then
293
- sed -i "/.*\/$user\/.*$1.conf/d" /etc/$1/conf.d/vesta.conf
+ fi
+ # clean-up for both config styles if there is no more domains
+ web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
+ if [ "$web_domain" -eq '0' ]; then
294
+ sed -i "/.*\/$user\/.*/d" /etc/$1/conf.d/vesta.conf
295
+ if [ -f "$conf" ]; then
296
rm -f $conf
297
298
0 commit comments