Merge pull request #394 from jlmuir/init-javacmd-auto-fix

Improve activemq init JAVACMD auto detection
This commit is contained in:
Jean-Baptiste Onofré 2019-10-18 19:11:13 +02:00 committed by GitHub
commit 7a243f9751
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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