Commit 3327730b authored by guus's avatar guus

OF-614: The Debian startup script should check a number of well known...

OF-614: The Debian startup script should check a number of well known locations for a JRE if JAVA_HOME is not set.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13487 b35dd754-fafc-0310-a699-88a17e54d16e
parent 599352c1
......@@ -23,8 +23,14 @@
# Attempt to locate JAVA_HOME, code borrowed from jabref package
if [ -z $JAVA_HOME ]
then
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/default-java && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-7-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-7-openjdk-amd64 && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-7-openjdk && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-6-openjdk-amd64 && test -d $t && JAVA_HOME=$t
t=/usr/lib/jvm/java-6-openjdk && test -d $t && JAVA_HOME=$t
fi
PATH=/sbin:/bin:/usr/sbin:/usr/bin:${JAVA_HOME}/bin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment