Fix croneval script to respect CONF_DIR

This commit fixes the croneval script to respect the CONF_DIR
environment variable used to locate the configuration directory.

Original commit: elastic/x-pack-elasticsearch@79974947f9
This commit is contained in:
Jason Tedor 2017-07-20 19:49:28 +09:00
parent 5fe584472e
commit 581293aed5
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,10 @@ fi
declare -a args=("$@")
if [ -e "$CONF_DIR" ]; then
args=("${args[@]}" --path.conf "$CONF_DIR")
fi
cd "$ES_HOME" > /dev/null
"$JAVA" $ES_JAVA_OPTS -cp "$ES_CLASSPATH" -Des.path.home="$ES_HOME" org.elasticsearch.xpack.watcher.trigger.schedule.tool.CronEvalTool "${args[@]}"
status=$?