summaryrefslogtreecommitdiffstats
path: root/vnfs/vCPE/scripts/v_web_install.sh
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2017-09-01 12:31:07 -0400
committerMarco Platania <platania@research.att.com>2017-09-01 12:31:07 -0400
commit75c6b2d06da261a294c6d59e287e7b62634f30dc (patch)
tree14f9ee5e7a7e91472c0650d3363e965658f910e7 /vnfs/vCPE/scripts/v_web_install.sh
parentcdaad12c5fb377e042a37260d218c82150237ffc (diff)
Add the Java repository to vCPE VMs
- Add repos to sources.list.d instead of using add-apt-repository Change-Id: I3f84bce0e189c3c0eed3d3dd2a292761726ec236 Issue-ID: INT-129 Signed-off-by: Marco Platania <platania@research.att.com>
Diffstat (limited to 'vnfs/vCPE/scripts/v_web_install.sh')
-rw-r--r--vnfs/vCPE/scripts/v_web_install.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnfs/vCPE/scripts/v_web_install.sh b/vnfs/vCPE/scripts/v_web_install.sh
index 94d3ebd7..f7cca06b 100644
--- a/vnfs/vCPE/scripts/v_web_install.sh
+++ b/vnfs/vCPE/scripts/v_web_install.sh
@@ -48,9 +48,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 g++ libcurl4-gnutls-dev
+apt-get install --allow-unauthenticated -y wget openjdk-8-jdk apt-transport-https ca-certificates g++ libcurl4-gnutls-dev
sleep 1
# Download DHCP config files