diff options
author | Marco Platania <platania@research.att.com> | 2018-07-17 17:33:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-07-17 17:33:04 +0000 |
commit | 534ba4b901b31b987b0c92e1d012758eadd1a954 (patch) | |
tree | a378aec805226cdb3dadf7b7168c9daf3515828a /boot/nbi_serv.sh | |
parent | e8cb52b80d4fb40810c455d9948e146e0ec79c19 (diff) | |
parent | 16f7357930c846a1163fc124bd82267be914512f (diff) |
Merge "Improve the way to deploy onap via proxy"
Diffstat (limited to 'boot/nbi_serv.sh')
-rw-r--r-- | boot/nbi_serv.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/boot/nbi_serv.sh b/boot/nbi_serv.sh index 6a9c2aed..a9390b8a 100644 --- a/boot/nbi_serv.sh +++ b/boot/nbi_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="./nbi_vm_init.sh" |