mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
Merge pull request #1576 from moucho/rebuild_problem
Fix rebuild-web-domain deleting all includes in /etc/*/conf.d/vesta.conf for some usernames
This commit is contained in:
commit
f1a6b3783c
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ is_object_unsuspended 'user' 'USER' "$user"
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Deleting old web configs
|
# Deleting old web configs
|
||||||
sed -i "/.*\/$user\//d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
sed -i "/.*\/$user\/conf\/web\//d" /etc/$WEB_SYSTEM/conf.d/vesta.conf
|
||||||
if [ -e "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf" ]; then
|
if [ -e "$HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf" ]; then
|
||||||
rm $HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf
|
rm $HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf
|
||||||
fi
|
fi
|
||||||
|
@ -47,7 +47,7 @@ fi
|
||||||
|
|
||||||
# Deleting old proxy configs
|
# Deleting old proxy configs
|
||||||
if [ ! -z "$PROXY_SYSTEM" ]; then
|
if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||||
sed -i "/.*\/$user\//d" /etc/$PROXY_SYSTEM/conf.d/vesta.conf
|
sed -i "/.*\/$user\/conf\/web\//d" /etc/$PROXY_SYSTEM/conf.d/vesta.conf
|
||||||
|
|
||||||
if [ -e "$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf" ]; then
|
if [ -e "$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf" ]; then
|
||||||
rm $HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf
|
rm $HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue