Skip to content

Commit b470605

Browse files
committed
proper condition nginx config change
1 parent 5d6dd16 commit b470605

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/v-rebuild-web-domains

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ else
9595
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf"
9696
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
9797
mv $tmp_conf $conf
98-
fi
99-
proxy_include=$(grep "$conf" $proxy_conf )
100-
if [ -z "$proxy_include" ]; then
101-
echo "include $conf;" >> $proxy_conf
98+
proxy_include=$(grep "$conf" $proxy_conf )
99+
if [ -z "$proxy_include" ]; then
100+
echo "include $conf;" >> $proxy_conf
101+
fi
102102
fi
103103

104104
# Checking SSL proxy

0 commit comments

Comments
 (0)