mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
During the development of elastic/x-pack-elasticsearch#1831 (elastic/x-pack-elasticsearch@5ac95c6) there was an intention to replace `SystemKeyTool` with `EncKeyTool`. The java change was reverted and never committed to master, but the script change was accidentally left in place. Also removes redundant "properties" variable (refer `elastic/x-pack-elasticsearch@b0a3b89`) Original commit: elastic/x-pack-elasticsearch@f240479748
19 lines
602 B
Bash
Executable File
19 lines
602 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
|
|
|
|
declare -a args=("$@")
|
|
args=("${args[@]}" --path.conf "$CONF_DIR")
|
|
|
|
cd "$ES_HOME" > /dev/null
|
|
"$JAVA" $ES_JAVA_OPTS -Des.path.home="$ES_HOME" -cp "$ES_CLASSPATH" org.elasticsearch.xpack.security.crypto.tool.SystemKeyTool "${args[@]}"
|
|
status=$?
|
|
cd - > /dev/null
|
|
exit $status
|