Explorar el Código

Fix for domains without proxy support

Serghey Rodin hace 12 años
padre
commit
4600b2ac94
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      bin/v-restore-user

+ 5 - 4
bin/v-restore-user

@@ -332,10 +332,11 @@ if [ "$web" != 'no' ]; then
                     conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
                     conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
                     cat $tmp_conf >> $conf
                     cat $tmp_conf >> $conf
                     rm -f $tmp_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
                 fi
 
 
                 # Adding SSL proxy vhost
                 # Adding SSL proxy vhost