Fixed Setup Titan AAI process
The way to configure properties files was wrong causing problems
during the DB creation. This change files that function as well
as others related with that function.
Change-Id: I5cc637e170b64e15fff5de4cb04bdcbd2506ea87
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: INT-18
diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions
index 709d7eb..16e7741 100755
--- a/bootstrap/vagrant-onap/lib/functions
+++ b/bootstrap/vagrant-onap/lib/functions
@@ -58,15 +58,12 @@
# install_dev_tools() - Install basic dependencies
function install_dev_tools {
- install_package apt-transport-https
- install_package ca-certificates
- install_package curl
+ install_packages apt-transport-https ca-certificates curl
}
# _install_bind() - Install bind utils
function _install_bind {
- install_package bind9
- install_package bind9utils
+ install_packages bind9 bind9utils
}
# install_java() - Install java binaries
@@ -76,6 +73,10 @@
fi
install_package software-properties-common
add-apt-repository -y ppa:openjdk-r/ppa
+
+ # Remove Java 7
+ uninstall_packages default-jre openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
+
install_package openjdk-8-jdk
# ca-certificates-java is not a dependency in the Oracle JDK/JRE so this must be explicitly installed.
/var/lib/dpkg/info/ca-certificates-java.postinst configure
@@ -91,8 +92,8 @@
add-apt-repository -y ppa:andrei-pozolotin/maven3
install_package maven3
- # Force Maven3 to use jdk8
- apt-get purge openjdk-7-jdk -y
+ # Remove Java 7
+ uninstall_package openjdk-7-jdk
_configure_maven
}
@@ -124,8 +125,7 @@
# install_python() - Install Python 2.7 and other tools necessary for development.
function install_python {
- install_package python2.7
- install_package python-dev
+ install_packages python2.7 python-dev
}
# _install_pip() - Install Python Package Manager