From 4600b2ac94cec6bf3926cc85dc0797fc8c75e23d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Fri, 28 Mar 2014 01:51:14 +0200 Subject: [PATCH] Fix for domains without proxy support --- bin/v-restore-user | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/v-restore-user b/bin/v-restore-user index 1615e6ce..a695e603 100755 --- a/bin/v-restore-user +++ b/bin/v-restore-user @@ -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