summaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts/v_dhcp_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-09-01 16:34:58 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-01 16:34:58 +0000
commit009c0af9c3b0089646267c404eb3e94ae94b0f10 (patch)
tree0c17247ea133c05f9330a048a334ee2b1b7cdc27 /vnfs/vCPE/scripts/v_dhcp_install.sh
parent765e6da946abfa392e0806c4c4d6368289f9bd26 (diff)
parent75c6b2d06da261a294c6d59e287e7b62634f30dc (diff)
Merge "Add the Java repository to vCPE VMs"
Diffstat (limited to 'vnfs/vCPE/scripts/v_dhcp_install.sh')
-rw-r--r--vnfs/vCPE/scripts/v_dhcp_install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnfs/vCPE/scripts/v_dhcp_install.sh b/vnfs/vCPE/scripts/v_dhcp_install.sh
index c8c567d3..4cf63036 100644
--- a/vnfs/vCPE/scripts/v_dhcp_install.sh
+++ b/vnfs/vCPE/scripts/v_dhcp_install.sh
@@ -49,9 +49,10 @@ then
fi
# Download required dependencies
-add-apt-repository -y ppa:openjdk-r/ppa
+echo "deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main" >> /etc/apt/sources.list.d/java.list
+echo "deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial main" >> /etc/apt/sources.list.d/java.list
apt-get update
-apt-get install -y wget openjdk-8-jdk apt-transport-https ca-certificates kea-dhcp4-server g++ libcurl4-gnutls-dev libboost-dev kea-dev
+apt-get install --allow-unauthenticated -y wget openjdk-8-jdk apt-transport-https ca-certificates kea-dhcp4-server g++ libcurl4-gnutls-dev libboost-dev kea-dev
sleep 1
# Download the kea hook