From 16f7357930c846a1163fc124bd82267be914512f Mon Sep 17 00:00:00 2001 From: AbirATTAR Date: Tue, 3 Jul 2018 09:28:58 +0200 Subject: Improve the way to deploy onap via proxy Issue-ID: OOM-1275 Change-Id: I0d77bcfe1e9ca183b3ba1aa56fff713db33b677b Signed-off-by: Abir EL ATTAR --- boot/sdnc_serv.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'boot/sdnc_serv.sh') diff --git a/boot/sdnc_serv.sh b/boot/sdnc_serv.sh index 58f03f1c..cce2039c 100644 --- a/boot/sdnc_serv.sh +++ b/boot/sdnc_serv.sh @@ -8,6 +8,14 @@ # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO +HTTP_PROXY=$(cat /opt/config/http_proxy.txt) +HTTPS_PROXY=$(cat /opt/config/https_proxy.txt) + +if [ $HTTP_PROXY != " " ] +then + export http_proxy=$HTTP_PROXY + export https_proxy=$HTTPS_PROXY +fi dir="/opt" cmd="./sdnc_vm_init.sh" -- cgit 1.2.3-korg