aboutsummaryrefslogtreecommitdiffstats
path: root/boot/cli_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2018-07-17 17:33:04 +0000
committerGerrit Code Review <gerrit@onap.org>2018-07-17 17:33:04 +0000
commit534ba4b901b31b987b0c92e1d012758eadd1a954 (patch)
treea378aec805226cdb3dadf7b7168c9daf3515828a /boot/cli_install.sh
parente8cb52b80d4fb40810c455d9948e146e0ec79c19 (diff)
parent16f7357930c846a1163fc124bd82267be914512f (diff)
Merge "Improve the way to deploy onap via proxy"
Diffstat (limited to 'boot/cli_install.sh')
-rw-r--r--boot/cli_install.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/boot/cli_install.sh b/boot/cli_install.sh
index 22fec53e..4593c686 100644
--- a/boot/cli_install.sh
+++ b/boot/cli_install.sh
@@ -20,6 +20,15 @@ CLI_LATEST_BINARY="https://nexus.onap.org/content/repositories/releases/org/onap
CLI_INSTALL_DIR=/opt/onap/cli
CLI_ZIP=cli.zip
CLI_BIN=/usr/bin/onap
+HTTP_PROXY=$(cat /opt/config/http_proxy.txt)
+HTTPS_PROXY=$(cat /opt/config/https_proxy.txt)
+
+if [ $HTTP_PROXY != "no_proxy" ]
+then
+ export http_proxy=$HTTP_PROXY
+ export https_proxy=$HTTPS_PROXY
+fi
+
export ONAP_CLI_HOME=$CLI_INSTALL_DIR
export CLI_PRODUCT_VERSION=onap-1.1