Skip to content

Commit 844c001

Browse files
committed
Set JDK path on FreeBSD hosts
1 parent 37162e3 commit 844c001

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

distribution/src/bin/elasticsearch-env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ else
4949
if [ "$(uname -s)" = "Darwin" ]; then
5050
# macOS has a different structure
5151
JAVA="$ES_HOME/jdk.app/Contents/Home/bin/java"
52+
elif [ "$(uname -s)" = "FreeBSD" ]; then
53+
LOCALBASE="$(sysctl -n user.localbase)"
54+
JAVA="${LOCALBASE}/bin/java"
5255
else
5356
JAVA="$ES_HOME/jdk/bin/java"
5457
fi

0 commit comments

Comments
 (0)