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
|
||||
|
||||
# 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 `
|
||||
if [ -z "$JAVACMD" ] ; then
|
||||
JAVACMD=java
|
||||
|
|
Loading…
Reference in New Issue