Skip to content

Commit 4600b2a

Browse files
committed
Fix for domains without proxy support
1 parent 348dd7c commit 4600b2a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/v-restore-user

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,11 @@ if [ "$web" != 'no' ]; then
332332
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
333333
cat $tmp_conf >> $conf
334334
rm -f $tmp_conf
335-
fi
336-
proxy_include=$(grep "$conf" $proxy_conf)
337-
if [ -z "$proxy_include" ]; then
338-
echo "include $conf;" >> $proxy_conf
335+
336+
proxy_include=$(grep "$conf" $proxy_conf)
337+
if [ -z "$proxy_include" ]; then
338+
echo "include $conf;" >> $proxy_conf
339+
fi
339340
fi
340341

341342
# Adding SSL proxy vhost

0 commit comments

Comments
 (0)