vault.sh has an incorrect check to make sure JBOSS_HOME is set correctly.
SANITIZED_JBOSS_HOME=`cd "$JBOSS_HOME/.."; pwd`
if [ "$RESOLVED_JBOSS" != "$SANITIZED_JBOSS_HOME" ]; then
The check will always fail because of the incorrect "/..", which should be removed.
The incorrect value is only used for printing the "WARNING JBOSS_HOME may be pointing to a different installation - unpredictable results may occur." log, and appears to have been around since at least EAP 6.0.
I will be working on a fix for upstream issue (WFCORE-2160/JBEAP-8135) - which most likely will be easy to backport into 6.4.x.
Pull Request: https://github.com/jbossas/jboss-eap/pull/2918
Verification failed for EAP-6.4.16-CP.CR1;
Similarly as in JBEAP-8154 / JBEAP-8135 there is undefined variable `$RESOLVED_JBOSS` (line 51), so the warning is still printed anyway.
Changing this to `$RESOLVED_JBOSS_HOME` (defined on line 45) should worked as expected.
Regression tests passed
Verified with EAP 6.4.20.CP.CR1