Commit 2ffaf612 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

RHX work.



git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8182 b35dd754-fafc-0310-a699-88a17e54d16e
parent af1f9376
...@@ -37,12 +37,14 @@ RETVAL=0 ...@@ -37,12 +37,14 @@ RETVAL=0
# If a openfire home variable has not been specified, try to determine it. # If a openfire home variable has not been specified, try to determine it.
if [ -z "$OPENFIRE_HOME" -o ! -d "$OPENFIRE_HOME" ]; then if [ -z "$OPENFIRE_HOME" -o ! -d "$OPENFIRE_HOME" ]; then
if [ -d "/usr/local/openfire" ]; then if [ -d "/usr/share/openfire" ]; then
OPENFIRE_HOME="/usr/share/openfire"
elif [ -d "/usr/local/openfire" ]; then
OPENFIRE_HOME="/usr/local/openfire" OPENFIRE_HOME="/usr/local/openfire"
elif [ -d "/opt/openfire" ]; then elif [ -d "/opt/openfire" ]; then
OPENFIRE_HOME="/opt/openfire" OPENFIRE_HOME="/opt/openfire"
else else
echo "Could not find Openfire installation under /opt or /usr/local." echo "Could not find Openfire installation under /opt, /usr/share, or /usr/local."
echo "Please specify the Openfire installation location as variable OPENFIRE_HOME" echo "Please specify the Openfire installation location as variable OPENFIRE_HOME"
echo "in /etc/sysconfig/openfire." echo "in /etc/sysconfig/openfire."
exit 1 exit 1
...@@ -56,6 +58,8 @@ fi ...@@ -56,6 +58,8 @@ fi
if [ -z "$JAVA_HOME" ]; then if [ -z "$JAVA_HOME" ]; then
if [ -d "${OPENFIRE_HOME}/jre" ]; then if [ -d "${OPENFIRE_HOME}/jre" ]; then
JAVA_HOME="${OPENFIRE_HOME}/jre" JAVA_HOME="${OPENFIRE_HOME}/jre"
elif [ -d "/etc/alternatives/jre" ]; then
JAVA_HOME="${OPENFIRE_HOME}/jre"
else else
jdks=`ls -r1d /usr/java/j*` jdks=`ls -r1d /usr/java/j*`
for jdk in $jdks; do for jdk in $jdks; do
......
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