Skip to content

Commit

Permalink
Merge pull request #1576 from moucho/rebuild_problem
Browse files Browse the repository at this point in the history
Fix rebuild-web-domain deleting all includes in /etc/*/conf.d/vesta.conf for some usernames
  • Loading branch information
dpeca committed May 21, 2018
2 parents 92f70d7 + 85b3578 commit f1a6b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/v-rebuild-web-domains
Expand Up @@ -37,7 +37,7 @@ is_object_unsuspended 'user' 'USER' "$user"
#----------------------------------------------------------#

# 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
rm $HOMEDIR/$user/conf/web/$WEB_SYSTEM.conf
fi
Expand All @@ -47,7 +47,7 @@ fi

# Deleting old proxy configs
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
rm $HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf
Expand Down

0 comments on commit f1a6b37

Please sign in to comment.