summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-05-18 23:00:31 -0700
committerDeepak S <deepak.s@linux.intel.com>2017-05-18 23:00:31 -0700
commite7773602bfca7cb9c25beb42dfa5d9c91ec459fd (patch)
treec34e7e17ef526d4cc5cc6497cb8f7ff30150c6ae /tools
parent929cb01bf4ab8b5e7ddfbdb5b26499c21fba2437 (diff)
Adding http proxy setup for non-intractive build
Change-Id: I9a3137f60b83c88b16027a9e6c404ccc3673b820 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/vnf_build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/vnf_build.sh b/tools/vnf_build.sh
index 2a9417ca..342ac119 100755
--- a/tools/vnf_build.sh
+++ b/tools/vnf_build.sh
@@ -262,6 +262,18 @@ build_vnfs()
if [[ "$1" = "--silient" ]];then
pushd $VNF_CORE
+ echo "Setup proxy if needed..."
+ http_proxy=$2
+ https_proxy=$3
+ if [[ "$http_proxy" != "" ]]; then
+ export http_proxy=$http_proxy
+ export https_proxy=$http_proxy
+ fi
+
+ if [[ "$https_proxy" != "" ]]; then
+ export https_proxy=$https_proxy
+ fi
+
echo "Install required libraries..."
touch .agree
install_libs