You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
483 B
20 lines
483 B
#!/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
|
|
# 2.0; you may not use this file except in compliance with the Elastic License
|
|
# 2.0.
|
|
|
|
CLI_PARAMETERS="$@"
|
|
|
|
source "`dirname "$0"`"/elasticsearch-env
|
|
|
|
source "$ES_HOME"/bin/x-pack-env
|
|
|
|
CLI_JAR=$(ls "$ES_HOME"/bin/elasticsearch-sql-cli-*.jar)
|
|
|
|
exec \
|
|
"$JAVA" \
|
|
"$XSHARE" \
|
|
-jar "$CLI_JAR" \
|
|
$CLI_PARAMETERS
|