Explorar el Código

rebuild condition when running without nginx

Serghey Rodin hace 12 años
padre
commit
b55acb79f6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      func/rebuild.sh

+ 1 - 1
func/rebuild.sh

@@ -282,7 +282,7 @@ rebuild_web_domain_conf() {
     fi
     fi
 
 
     # Checking proxy
     # Checking proxy
-    if [ ! -z "$PROXY" ]; then
+    if [ ! -z "$PROXY_SYSTEM" ] && [ ! -z "$PROXY" ]; then
         tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
         tpl_file="$WEBTPL/$PROXY_SYSTEM/$PROXY.tpl"
         conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf"
         conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf"
         add_web_config
         add_web_config