summaryrefslogtreecommitdiffstats
path: root/boot/mr_serv.sh
diff options
context:
space:
mode:
authorgwu <gary.i.wu@huawei.com>2018-07-17 22:36:47 -0700
committergwu <gary.i.wu@huawei.com>2018-07-17 22:50:41 -0700
commit1f5ef678b4298fdef56e168dd802627a80f6f441 (patch)
tree76cf713ad1b53438055ae83eee1219e5195bcda1 /boot/mr_serv.sh
parent534ba4b901b31b987b0c92e1d012758eadd1a954 (diff)
Bug fix on HEAT template HTTP_PROXY
Various boot scripts should have been checking for "no_proxy" but were checking for " " instead. This fixes the issue. Also add default values for HTTP_PROXY variables. Change-Id: I5245018a7bb9c33b84ac3096d8a9c0986b2e976c Issue-ID: OOM-1275 Signed-off-by: gwu <gary.i.wu@huawei.com>
Diffstat (limited to 'boot/mr_serv.sh')
-rw-r--r--boot/mr_serv.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/mr_serv.sh b/boot/mr_serv.sh
index 505beb8b..9e324dc0 100644
--- a/boot/mr_serv.sh
+++ b/boot/mr_serv.sh
@@ -29,7 +29,7 @@
HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
-if [ $HTTP_PROXY != " " ]
+if [ $HTTP_PROXY != "no_proxy" ]
then
export http_proxy=$HTTP_PROXY
export https_proxy=$HTTPS_PROXY