-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jim Van Fleet
committed
Nov 8, 2016
1 parent
7be79fd
commit 71a0feb
Showing
2 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Override this file with a version with the following commented out in order to use Oracle JDK. | ||
|
||
# Uncomment all the following lines to download the JDK to your Shibboleth IDP image. By uncommenting these lines, you agree to the Oracle Binary Code License Agreement for Java SE (http://www.oracle.com/technetwork/java/javase/terms/license/index.html) | ||
|
||
JAVA_VERSION=7u79 | ||
BUILD_VERSION=b15 | ||
JAVA_HOME=/usr/java/latest | ||
|
||
wget -nv --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/$JAVA_VERSION-$BUILD_VERSION/jdk-$JAVA_VERSION-linux-x64.rpm" -O /tmp/jdk-7-linux-x64.rpm && \ | ||
yum -y install /tmp/jdk-7-linux-x64.rpm && \ | ||
rm -f /tmp/jdk-7-linux-x64.rpm && \ | ||
alternatives --install /usr/bin/java jar $JAVA_HOME/bin/java 200000 && \ | ||
alternatives --install /usr/bin/javaws javaws $JAVA_HOME/bin/javaws 200000 && \ | ||
alternatives --install /usr/bin/javac javac $JAVA_HOME/bin/javac 200000 |