update CLI tools to work with spaces in the home path
The CLI tools are launched by scripts and these scripts need to handle spaces in the elasticsearch home path. Closes elastic/elasticsearch#631 Original commit: elastic/x-pack-elasticsearch@6a4325d296
This commit is contained in:
parent
d3ee002180
commit
cb0f169655
|
@ -32,7 +32,7 @@ if [ "x$ES_INCLUDE" = "x" ]; then
|
|||
/opt/elasticsearch/elasticsearch.in.sh \
|
||||
~/.elasticsearch.in.sh \
|
||||
"`dirname "$0"`"/../elasticsearch.in.sh \
|
||||
$ES_HOME/bin/elasticsearch.in.sh; do
|
||||
"$ES_HOME/bin/elasticsearch.in.sh"; do
|
||||
if [ -r "$include" ]; then
|
||||
. "$include"
|
||||
break
|
||||
|
@ -125,7 +125,7 @@ export HOSTNAME=`hostname -s`
|
|||
# include shield jars in classpath
|
||||
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/shield/*"
|
||||
|
||||
cd $ES_HOME > /dev/null
|
||||
cd "$ES_HOME" > /dev/null
|
||||
"$JAVA" $ES_JAVA_OPTS -cp "$ES_CLASSPATH" -Des.path.home="$ES_HOME" $properties org.elasticsearch.shield.authc.esusers.tool.ESUsersTool "$@"
|
||||
status=$?
|
||||
cd - > /dev/null
|
||||
|
|
|
@ -4,6 +4,6 @@ rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|||
rem or more contributor license agreements. Licensed under the Elastic License;
|
||||
rem you may not use this file except in compliance with the Elastic License.
|
||||
|
||||
PUSHD %~dp0
|
||||
CALL %~dp0.in.bat org.elasticsearch.shield.authc.esusers.tool.ESUsersTool %*
|
||||
PUSHD "%~dp0"
|
||||
CALL "%~dp0.in.bat" org.elasticsearch.shield.authc.esusers.tool.ESUsersTool %*
|
||||
POPD
|
|
@ -32,7 +32,7 @@ if [ "x$ES_INCLUDE" = "x" ]; then
|
|||
/opt/elasticsearch/elasticsearch.in.sh \
|
||||
~/.elasticsearch.in.sh \
|
||||
"`dirname "$0"`"/../elasticsearch.in.sh \
|
||||
$ES_HOME/bin/elasticsearch.in.sh; do
|
||||
"$ES_HOME/bin/elasticsearch.in.sh"; do
|
||||
if [ -r "$include" ]; then
|
||||
. "$include"
|
||||
break
|
||||
|
@ -125,7 +125,7 @@ export HOSTNAME=`hostname -s`
|
|||
# include shield jars in classpath
|
||||
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/shield/*"
|
||||
|
||||
cd $ES_HOME > /dev/null
|
||||
cd "$ES_HOME" > /dev/null
|
||||
$JAVA $ES_JAVA_OPTS -cp "$ES_CLASSPATH" -Des.path.home="$ES_HOME" $properties org.elasticsearch.shield.crypto.tool.SystemKeyTool "$@"
|
||||
status=$?
|
||||
cd - > /dev/null
|
||||
|
|
|
@ -4,6 +4,6 @@ rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|||
rem or more contributor license agreements. Licensed under the Elastic License;
|
||||
rem you may not use this file except in compliance with the Elastic License.
|
||||
|
||||
PUSHD %~dp0
|
||||
CALL %~dp0.in.bat org.elasticsearch.shield.crypto.tool.SystemKeyTool %*
|
||||
PUSHD "%~dp0"
|
||||
CALL "%~dp0.in.bat" org.elasticsearch.shield.crypto.tool.SystemKeyTool %*
|
||||
POPD
|
|
@ -32,7 +32,7 @@ if [ "x$ES_INCLUDE" = "x" ]; then
|
|||
/opt/elasticsearch/elasticsearch.in.sh \
|
||||
~/.elasticsearch.in.sh \
|
||||
"`dirname "$0"`"/../elasticsearch.in.sh \
|
||||
$ES_HOME/bin/elasticsearch.in.sh; do
|
||||
"$ES_HOME/bin/elasticsearch.in.sh"; do
|
||||
if [ -r "$include" ]; then
|
||||
. "$include"
|
||||
break
|
||||
|
@ -116,7 +116,7 @@ export HOSTNAME=`hostname -s`
|
|||
# include watcher jars in classpath
|
||||
ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/plugins/watcher/*"
|
||||
|
||||
cd $ES_HOME > /dev/null
|
||||
cd "$ES_HOME" > /dev/null
|
||||
$JAVA $ES_JAVA_OPTS -cp "$ES_CLASSPATH" org.elasticsearch.watcher.trigger.schedule.tool.CronEvalTool "$@" $properties
|
||||
status=$?
|
||||
cd - > /dev/null
|
||||
|
|
|
@ -4,6 +4,6 @@ rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|||
rem or more contributor license agreements. Licensed under the Elastic License;
|
||||
rem you may not use this file except in compliance with the Elastic License.
|
||||
|
||||
PUSHD %~dp0
|
||||
CALL %~dp0.in.bat org.elasticsearch.watcher.trigger.schedule.tool.CronEvalTool %*
|
||||
PUSHD "%~dp0"
|
||||
CALL "%~dp0.in.bat" org.elasticsearch.watcher.trigger.schedule.tool.CronEvalTool %*
|
||||
POPD
|
Loading…
Reference in New Issue