mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
parent
7ec123a861
commit
d942f85d31
1 changed files with 6 additions and 4 deletions
|
@ -287,10 +287,12 @@ del_web_config() {
|
||||||
fi
|
fi
|
||||||
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
|
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
|
||||||
sed -i "$top_line,$bottom_line d" $conf
|
sed -i "$top_line,$bottom_line d" $conf
|
||||||
|
fi
|
||||||
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
|
# clean-up for both config styles if there is no more domains
|
||||||
if [ "$web_domain" -eq '0' ]; then
|
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
|
||||||
sed -i "/.*\/$user\/.*$1.conf/d" /etc/$1/conf.d/vesta.conf
|
if [ "$web_domain" -eq '0' ]; then
|
||||||
|
sed -i "/.*\/$user\/.*/d" /etc/$1/conf.d/vesta.conf
|
||||||
|
if [ -f "$conf" ]; then
|
||||||
rm -f $conf
|
rm -f $conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue