Skip to content

Commit 1664355

Browse files
rduplainspinscale
authored andcommitted
Startup: Add ES_HOME to ES_INCLUDE search path
With this change, the elasticsearch script can be linked to another path without having to set ES_INCLUDE to match the installation path. Previously, the elasticsearch would find ES_HOME correctly even if linked but could not find the include script, and finding it would be expected behavior to me based on its current search path. Closes #4958
1 parent 5b5c032 commit 1664355

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/elasticsearch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ if [ "x$ES_INCLUDE" = "x" ]; then
8989
/usr/local/share/elasticsearch/elasticsearch.in.sh \
9090
/opt/elasticsearch/elasticsearch.in.sh \
9191
~/.elasticsearch.in.sh \
92+
$ES_HOME/bin/elasticsearch.in.sh \
9293
"`dirname "$0"`"/elasticsearch.in.sh; do
9394
if [ -r "$include" ]; then
9495
. "$include"

0 commit comments

Comments
 (0)