aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vLBMS/scripts/v_dns_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2019-07-30 17:40:54 -0400
committerMarco Platania <platania@research.att.com>2019-07-30 17:40:54 -0400
commit9635f49de43693348b4347768d7a66fa56b46ff8 (patch)
tree96fa634c0e28cb028d6d5c48b0519ae382c2bf9e /vnfs/vLBMS/scripts/v_dns_install.sh
parent17b851b0c50b52bea6f8d8b88ed389d4d925a0f2 (diff)
Fix path to honeycomb in vLB/vDNS scripts
Issue-ID: INT-1166 Signed-off-by: Marco Platania <platania@research.att.com> Change-Id: I8d26a78a6936ad32dc75cd8ec12cdf611c2b8180
Diffstat (limited to 'vnfs/vLBMS/scripts/v_dns_install.sh')
-rw-r--r--vnfs/vLBMS/scripts/v_dns_install.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/vnfs/vLBMS/scripts/v_dns_install.sh b/vnfs/vLBMS/scripts/v_dns_install.sh
index 2223e7e7..69ee8872 100644
--- a/vnfs/vLBMS/scripts/v_dns_install.sh
+++ b/vnfs/vLBMS/scripts/v_dns_install.sh
@@ -1,7 +1,8 @@
#!/bin/bash
NEXUS_ARTIFACT_REPO=$(cat /opt/config/nexus_artifact_repo.txt)
-NB_API_VERSION=$(cat /opt/config/nb_api_version.txt)
+DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt)
+if [[ "$DEMO_ARTIFACTS_VERSION" =~ "SNAPSHOT" ]]; then REPO=snapshots; else REPO=releases; fi
INSTALL_SCRIPT_VERSION=$(cat /opt/config/install_script_version.txt)
CLOUD_ENV=$(cat /opt/config/cloud_env.txt)
@@ -63,11 +64,11 @@ sed -i 's/vnfc=.*/vnfc=vDNS/g' /opt/config/properties.conf
# Download Honeycomb artifacts
wget -O vlb-vnf-onap-distribution-$DEMO_ARTIFACTS_VERSION-hc.tar.gz "${NEXUS_ARTIFACT_REPO}/service/local/artifact/maven/redirect?r=${REPO}&g=org.onap.demo.vnf&a=vlb-vnf-onap-distribution&c=hc&e=tar.gz&v=$DEMO_ARTIFACTS_VERSION"
-tar -zmxvf sample-distribution-$DEMO_ARTIFACTS_VERSION-hc.tar.gz
-mv sample-distribution-$DEMO_ARTIFACTS_VERSION honeycomb
+tar -zmxvf vlb-vnf-onap-distribution-$DEMO_ARTIFACTS_VERSION-hc.tar.gz
+mv vlb-vnf-onap-distribution-$DEMO_ARTIFACTS_VERSION honeycomb
-sed -i 's/"restconf-binding-address": "127.0.0.1",/"restconf-binding-address": "0.0.0.0",/g' honeycomb/vlb-vnf-onap-distribution-$DEMO_ARTIFACTS_VERSION/config/honeycomb.json
-sed -i 's/"netconf-tcp-binding-address": "127.0.0.1",/"netconf-tcp-binding-address": "0.0.0.0",/g' honeycomb/vlb-vnf-onap-distribution-$DEMO_ARTIFACTS_VERSION/config/honeycomb.json
+sed -i 's/"restconf-binding-address": "127.0.0.1",/"restconf-binding-address": "0.0.0.0",/g' honeycomb/config/honeycomb.json
+sed -i 's/"netconf-tcp-binding-address": "127.0.0.1",/"netconf-tcp-binding-address": "0.0.0.0",/g' honeycomb/config/honeycomb.json
rm *.tar.gz