Skip to content

Commit

Permalink
Merge pull request #12 from awoods/fcrepo-1546
Browse files Browse the repository at this point in the history
Update for Java8
  • Loading branch information
escowles committed May 19, 2015
2 parents 0af6ba7 + 4d7160f commit 39bdf76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
13 changes: 12 additions & 1 deletion install_scripts/java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@
###

# Java
apt-get -y install openjdk-7-jdk
if which java >/dev/null; then
echo "skip java 8 installation"
else
echo "java 8 installation"
apt-get install --yes python-software-properties
add-apt-repository ppa:webupd8team/java
apt-get update -qq
echo debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections
apt-get install --yes oracle-java8-installer
apt-get install --yes oracle-java8-set-default
fi

# Maven
apt-get -y install maven
Expand Down
4 changes: 4 additions & 0 deletions install_scripts/tomcat7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if ! grep -q "role rolename=\"fedoraAdmin\"" /etc/tomcat7/tomcat-users.xml ; the
$i<user username="fedora4" password="fedora4" roles="manager-gui"/>' /etc/tomcat7/tomcat-users.xml
fi

if ! grep -q "/usr/lib/jvm/java-8-oracle" /etc/default/tomcat7 ; then
echo "JAVA_HOME=/usr/lib/jvm/java-8-oracle" >> /etc/default/tomcat7
fi

# Make the ingest directory
mkdir /mnt/ingest
chown -R tomcat7:tomcat7 /mnt/ingest
Expand Down

0 comments on commit 39bdf76

Please sign in to comment.