Fix for domains without proxy support

This commit is contained in:
Serghey Rodin 2014-03-28 01:51:14 +02:00
parent 348dd7ca02
commit 4600b2ac94

View file

@ -332,10 +332,11 @@ if [ "$web" != 'no' ]; then
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
cat $tmp_conf >> $conf
rm -f $tmp_conf
fi
proxy_include=$(grep "$conf" $proxy_conf)
if [ -z "$proxy_include" ]; then
echo "include $conf;" >> $proxy_conf
proxy_include=$(grep "$conf" $proxy_conf)
if [ -z "$proxy_include" ]; then
echo "include $conf;" >> $proxy_conf
fi
fi
# Adding SSL proxy vhost