summaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts/v_dns_install.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-07-19 11:49:29 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-07-19 11:55:07 -0700
commitd647840046966047386022ea862081fda35988c8 (patch)
tree27fe485ecfa2532db45a53d0344e359316ac9b42 /vnfs/vCPE/scripts/v_dns_install.sh
parentd8843f2025ef00356ba8d0aab4daae996488399a (diff)
Deprecate use of sites/raw for vnf HEAT templates
Replace the use of sites/raw in vnf HEAT templates with zipped script artifacts Change-Id: I93c331c0f4753e8bf661e5a577463ab38bd116f5 Issue-ID: INT-592 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'vnfs/vCPE/scripts/v_dns_install.sh')
-rw-r--r--vnfs/vCPE/scripts/v_dns_install.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/vnfs/vCPE/scripts/v_dns_install.sh b/vnfs/vCPE/scripts/v_dns_install.sh
index feaa770e..4835c9d8 100644
--- a/vnfs/vCPE/scripts/v_dns_install.sh
+++ b/vnfs/vCPE/scripts/v_dns_install.sh
@@ -1,6 +1,5 @@
#!/bin/bash
-REPO_URL_BLOB=$(cat /opt/config/repo_url_blob.txt)
REPO_URL_ARTIFACTS=$(cat /opt/config/repo_url_artifacts.txt)
DEMO_ARTIFACTS_VERSION=$(cat /opt/config/demo_artifacts_version.txt)
INSTALL_SCRIPT_VERSION=$(cat /opt/config/install_script_version.txt)
@@ -56,9 +55,9 @@ sleep 1
# Download DNS and DHCP config files
cd /opt
-wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/kea-dhcp4_no_hook.conf
-wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/v_dns_init.sh
-wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/v_dns.sh
+unzip -p -j /opt/vcpe-scripts-$INSTALL_SCRIPT_VERSION.zip kea-dhcp4_no_hook.conf > /opt/kea-dhcp4_no_hook.conf
+unzip -p -j /opt/vcpe-scripts-$INSTALL_SCRIPT_VERSION.zip v_dns_init.sh > /opt/v_dns_init.sh
+unzip -p -j /opt/vcpe-scripts-$INSTALL_SCRIPT_VERSION.zip v_dns.sh > /opt/v_dns.sh
mv kea-dhcp4_no_hook.conf /etc/kea/kea-dhcp4.conf
chmod +x v_dns_init.sh
chmod +x v_dns.sh