Skip to content

Commit

Permalink
[ISSUE apache#6026] Fix the problem that the custom JAVA_HOME environ…
Browse files Browse the repository at this point in the history
…ment variable does not take effect
  • Loading branch information
Oliverwqcwrw committed Feb 23, 2023
1 parent 7cfffe7 commit fc78aa3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions distribution/bin/runbroker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ find_java_home()
{
case "`uname`" in
Darwin)
if [ -n "$JAVA_HOME" ]; then
JAVA_HOME=$JAVA_HOME
return
fi
JAVA_HOME=$(/usr/libexec/java_home)
;;
*)
Expand Down
4 changes: 4 additions & 0 deletions distribution/bin/runserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ find_java_home()
{
case "`uname`" in
Darwin)
if [ -n "$JAVA_HOME" ]; then
JAVA_HOME=$JAVA_HOME
return
fi
JAVA_HOME=$(/usr/libexec/java_home)
;;
*)
Expand Down
4 changes: 4 additions & 0 deletions distribution/bin/tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ find_java_home()
{
case "`uname`" in
Darwin)
if [ -n "$JAVA_HOME" ]; then
JAVA_HOME=$JAVA_HOME
return
fi
JAVA_HOME=$(/usr/libexec/java_home)
;;
*)
Expand Down

0 comments on commit fc78aa3

Please sign in to comment.