Skip to content

Commit 1abbd77

Browse files
committed
switch Vagrant to Java 8 #2151
1 parent 55eac9a commit 1abbd77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/vagrant/setup.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ sudo mv jq /usr/bin/jq
1111
echo "Adding Shibboleth yum repo"
1212
cp /dataverse/conf/vagrant/etc/yum.repos.d/shibboleth.repo /etc/yum.repos.d
1313
cp /dataverse/conf/vagrant/etc/yum.repos.d/epel-apache-maven.repo /etc/yum.repos.d
14-
yum install -y java-1.7.0-openjdk-devel postgresql-server apache-maven httpd mod_ssl shibboleth shibboleth-embedded-ds
14+
yum install -y java-1.8.0-openjdk-devel postgresql-server apache-maven httpd mod_ssl shibboleth shibboleth-embedded-ds
15+
# TODO: find a more robust way to make Java 8 the default! https://github.com/IQSS/dataverse/issues/2151
16+
echo 2 | alternatives --config java
17+
echo 2 | alternatives --config javac
18+
java -version
19+
javac -version
1520
service postgresql initdb
1621
service postgresql stop
1722
cp /dataverse/conf/vagrant/var/lib/pgsql/data/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf

0 commit comments

Comments
 (0)