Elasticsearch and ActiveMQ script failure if java path passed in

Description

On Redhat 7 when choosing the Java option to point to a Java version other than /opt/java it throws an error that it can't find the java folder path.

On line 87 of install-elasticsarch.sh this is causing the issue and works if removed
["$ES_JAVA_HOME" == "SYSTEM_JAVA" ]

Same for ActiveMQ install

Fix, build and test that the fix works across the different install options

Environment

None

Assignee

Jeremy Merrifield

Reporter

Jeremy Merrifield

Labels

None

Reviewer

None

Story point estimate

None

Time tracking

4h

Components

Sprint

None

Fix versions

Affects versions

Priority

Medium
Configure