mirror of https://github.com/apache/activemq.git
Merge pull request #394 from jlmuir/init-javacmd-auto-fix
Improve activemq init JAVACMD auto detection
This commit is contained in:
commit
7a243f9751
|
@ -245,7 +245,7 @@ if [ -z "$JAVACMD" ] || [ "$JAVACMD" = "auto" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hm, we still do not know the location of the java binary
|
# Hm, we still do not know the location of the java binary
|
||||||
if [ ! -x "$JAVACMD" ] ; then
|
if [ -z "$JAVACMD" ] || [ "$JAVACMD" = "auto" ] || [ ! -x "$JAVACMD" ] ; then
|
||||||
JAVACMD=`which java 2> /dev/null `
|
JAVACMD=`which java 2> /dev/null `
|
||||||
if [ -z "$JAVACMD" ] ; then
|
if [ -z "$JAVACMD" ] ; then
|
||||||
JAVACMD=java
|
JAVACMD=java
|
||||||
|
|
Loading…
Reference in New Issue