mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
clean vesta config before rebuild
This commit is contained in:
parent
b470605033
commit
c599ed7c99
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,12 @@ if [ "$domain_counter" -lt 1 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
# Clean web configs
|
||||||
|
sed -i "/.*\/$user\/.*.conf/d" $web_conf
|
||||||
|
if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||||
|
sed -i "/.*\/$user\/.*.conf/d" $proxy_conf
|
||||||
|
fi
|
||||||
|
|
||||||
# Renaming tmp config
|
# Renaming tmp config
|
||||||
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$WEB_SYSTEM.conf"
|
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$WEB_SYSTEM.conf"
|
||||||
conf="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf"
|
conf="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue