mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Fix sql cli sourcing of x-pack-env (#52613)
The sql-cli script sources x-pack-env, but it does so assuming the current directory is ES_HOME. This commit alters the source command to use ES_HOME which is available after running elasticsearch-env. closes #47803
This commit is contained in:
parent
7d9de8412a
commit
8c295cdc87
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
source "`dirname "$0"`"/elasticsearch-env
|
source "`dirname "$0"`"/elasticsearch-env
|
||||||
|
|
||||||
source "`dirname "$0"`"/x-pack-env
|
source "$ES_HOME"/bin/x-pack-env
|
||||||
|
|
||||||
CLI_JAR=$(ls $ES_HOME/bin/elasticsearch-sql-cli-*.jar)
|
CLI_JAR=$(ls "$ES_HOME"/bin/elasticsearch-sql-cli-*.jar)
|
||||||
|
|
||||||
exec \
|
exec \
|
||||||
"$JAVA" \
|
"$JAVA" \
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user