fix for nginxless configuration

This commit is contained in:
Serghey Rodin 2014-02-11 17:49:45 +02:00
commit 59abdee5da

View file

@ -69,7 +69,7 @@ if [ "$domain_counter" -lt 1 ]; then
# Deleting web configs
rm -f $HOMEDIR/$user/conf/web/*
sed -i "/.*\/$user\/.*$WEB_SYSTEM.conf/d" $web_conf
if [ -e "$proxy_conf" ]; then
if [ ! -z "$PROXY_SYSTEM" ]; then
sed -i "/.*\/$user\/.*$PROXY_SYSTEM.conf/d" $proxy_conf
fi
@ -103,6 +103,7 @@ else
fi
# Checking proxy
if [ ! -z "$PROXY_SYSTEM" ]; then
if [ "$proxy_change" = 'yes' ]; then
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf"
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
@ -130,7 +131,7 @@ else
conf="$HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf"
sed -i "/.*\/$user\/.*$PROXY_SYSTEM.conf/d" $proxy_conf
rm -f $HOMEDIR/$user/conf/web/s$PROXY_SYSTEM.conf
fi
fi
fi