From b4706050330a309a65694a93ee941485b663ac13 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 4 Jun 2013 12:52:07 +0300 Subject: [PATCH] proper condition nginx config change --- bin/v-rebuild-web-domains | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/v-rebuild-web-domains b/bin/v-rebuild-web-domains index d4e4ab0b..bb2ef0a3 100755 --- a/bin/v-rebuild-web-domains +++ b/bin/v-rebuild-web-domains @@ -95,10 +95,10 @@ else tmp_conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf" conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf" mv $tmp_conf $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 # Checking SSL proxy