mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -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
|
||||
|
||||
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
|
||||
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$WEB_SYSTEM.conf"
|
||||
conf="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue