mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
in case there is no conf
This commit is contained in:
parent
3c8c2f2cfb
commit
0d9218e9fc
1 changed files with 4 additions and 2 deletions
|
@ -285,8 +285,10 @@ del_web_config() {
|
|||
if [[ "$2" =~ stpl$ ]]; then
|
||||
conf="$HOMEDIR/$user/conf/web/s$1.conf"
|
||||
fi
|
||||
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
|
||||
sed -i "$top_line,$bottom_line d" $conf
|
||||
if [ -e "$conf" ]; then
|
||||
get_web_config_lines $WEBTPL/$1/$WEB_BACKEND/$2 $conf
|
||||
sed -i "$top_line,$bottom_line d" $conf
|
||||
fi
|
||||
fi
|
||||
# clean-up for both config styles if there is no more domains
|
||||
web_domain=$(grep DOMAIN $USER_DATA/web.conf |wc -l)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue