From 254597707b2573118680c569c1c748d3cca2af74 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Mon, 13 Aug 2018 15:42:38 -0400 Subject: [PATCH] Update proxy section in setting.xml - Add ... only if https proxy is specified - Tested successfully in windriver (SB07) - Solves part of the AAF installation issues Change-Id: I9f6dd8a7a9173b541b9872293d0c6ad705506dc3 Issue-ID: AAF-420 Signed-off-by: Marco Platania --- heat/ONAP/cloud-config/aaf_install.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/heat/ONAP/cloud-config/aaf_install.sh b/heat/ONAP/cloud-config/aaf_install.sh index 2d6657ec..61f23daa 100644 --- a/heat/ONAP/cloud-config/aaf_install.sh +++ b/heat/ONAP/cloud-config/aaf_install.sh @@ -115,6 +115,13 @@ under the License. --> +EOF + +if [[ $(cat /opt/config/https_proxy.txt) != "no_proxy" ]]; then + HTTPS_PROXY_HOST=$(cat /opt/config/https_proxy.txt | cut -d ':' -f1) + HTTPS_PROXY_PORT=$(cat /opt/config/https_proxy.txt | cut -d ':' -f2) + + cat >> settings.xml << EOF