summaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts/v_web_install.sh
diff options
context:
space:
mode:
authorBrian Freeman <bf1936@att.com>2017-11-08 17:56:22 -0500
committerBrian Freeman <bf1936@att.com>2017-11-08 17:56:34 -0500
commit7c1cf784b194a956bc25d1ea0171572af28099ae (patch)
treeba93f17cf137d34cd8d51d3e31b89ffd50ef2a7d /vnfs/vCPE/scripts/v_web_install.sh
parente05170be50af4717f90f46f42977832a9e820d38 (diff)
Install DHCP CPEPUBLC
Issue-ID: INT-81 Change-Id: If6e695f0a6783f00be2ee98461897fd5a60b797a Signed-off-by: Brian Freeman <bf1936@att.com>
Diffstat (limited to 'vnfs/vCPE/scripts/v_web_install.sh')
-rw-r--r--vnfs/vCPE/scripts/v_web_install.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/vnfs/vCPE/scripts/v_web_install.sh b/vnfs/vCPE/scripts/v_web_install.sh
index e207dd09..685d675a 100644
--- a/vnfs/vCPE/scripts/v_web_install.sh
+++ b/vnfs/vCPE/scripts/v_web_install.sh
@@ -51,13 +51,22 @@ fi
echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >> /etc/apt/sources.list.d/java.list
echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu $(lsb_release -c -s) main" >> /etc/apt/sources.list.d/java.list
apt-get update
-apt-get install --allow-unauthenticated -y wget openjdk-8-jdk apt-transport-https ca-certificates g++ libcurl4-gnutls-dev
+apt-get install --allow-unauthenticated -y wget openjdk-8-jdk apt-transport-https ca-certificates kea-dhcp4-server g++ libcurl4-gnutls-dev
sleep 1
-# Download DHCP config files
+# Download DHCP config and init files
cd /opt
+wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/kea-dhcp4-web.conf
wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/v_web_init.sh
wget $REPO_URL_BLOB/org.onap.demo/vnfs/vcpe/$INSTALL_SCRIPT_VERSION/v_web.sh
+
+
+
+# Configure DHCP
+cp kea-dhcp4-web.conf /etc/kea-dhcp4-server.conf
+mv kea-dhcp4-web.conf /etc/kea/kea-dhcp4.conf
+
+
chmod +x v_web_init.sh
chmod +x v_web.sh
mv v_web.sh /etc/init.d
@@ -88,4 +97,4 @@ then
reboot
fi
-./v_web_init.sh \ No newline at end of file
+./v_web_init.sh