mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-19 11:24:54 +00:00
This adds: * The CLI jar itself into the `bin`. It is an executable jar. * A shell and bat script to start the CLI. This isn't strictly required but folks will appreciate the consistency. * Basic packaging tests for the CLI. Relates to elastic/x-pack-elasticsearch#2979 Original commit: elastic/x-pack-elasticsearch@158f70a530
17 lines
423 B
Bash
Executable File
17 lines
423 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
|
|
|
|
CLI_JAR=$(ls $ES_HOME/bin/x-pack/sql-cli-*.jar)
|
|
|
|
exec \
|
|
"$JAVA" \
|
|
-jar "$CLI_JAR" \
|
|
"$@"
|