mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
This commit proposes removing an unnecessary directory push/pop from the X-Pack scripts. It is not clear exactly why these were added, the original change was almost three years ago in elastic/x-pack@ea9ba7cdd0 but unfortunately the commit message does not elucidate the exact the problem, nor is there an associated pull request. This change has propogated into all of the X-Pack scripts yet still the reasons are unclear. The little that we can glean from the commit message is that there was a problem with the default paths if the script was executed outside of the Elasticsearch home. It seems that such issues have been addressed by the recent introduction of elasticsearch-env so maybe we can simplify these scripts here? Relates elastic/x-pack-elasticsearch#2125 Original commit: elastic/x-pack-elasticsearch@9548c47743
19 lines
514 B
Bash
Executable File
19 lines
514 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
# or more contributor license agreements. Licensed under the Elastic License;
|
|
# you may not use this file except in compliance with the Elastic License.
|
|
|
|
source "`dirname "$0"`"/../elasticsearch-env
|
|
|
|
source "`dirname "$0"`"/x-pack-env
|
|
|
|
exec \
|
|
"$JAVA" \
|
|
$ES_JAVA_OPTS \
|
|
-Des.path.home="$ES_HOME" \
|
|
-Des.path.conf="$CONF_DIR" \
|
|
-cp "$ES_CLASSPATH" \
|
|
org.elasticsearch.xpack.extensions.XPackExtensionCli \
|
|
"$@"
|