"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/bin/elasticsearch-cli" (6 Jan 2022, 984 Bytes) of package /linux/www/elasticsearch-6.8.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "elasticsearch-cli": 6.8.22_vs_8.0.0-rc1.

    1 #!/bin/bash
    2 
    3 set -e -o pipefail
    4 
    5 source "`dirname "$0"`"/elasticsearch-env
    6 
    7 IFS=';' read -r -a additional_sources <<< "$ES_ADDITIONAL_SOURCES"
    8 for additional_source in "${additional_sources[@]}"
    9 do
   10   source "`dirname "$0"`"/$additional_source
   11 done
   12 
   13 IFS=';' read -r -a additional_classpath_directories <<< "$ES_ADDITIONAL_CLASSPATH_DIRECTORIES"
   14 for additional_classpath_directory in "${additional_classpath_directories[@]}"
   15 do
   16   ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/$additional_classpath_directory/*"
   17 done
   18 
   19 # use a small heap size for the CLI tools, and thus the serial collector to
   20 # avoid stealing many CPU cycles; a user can override by setting ES_JAVA_OPTS
   21 ES_JAVA_OPTS="-Xms4m -Xmx64m -XX:+UseSerialGC ${ES_JAVA_OPTS}"
   22 
   23 exec \
   24   "$JAVA" \
   25   $ES_JAVA_OPTS \
   26   -Des.path.home="$ES_HOME" \
   27   -Des.path.conf="$ES_PATH_CONF" \
   28   -Des.distribution.flavor="$ES_DISTRIBUTION_FLAVOR" \
   29   -Des.distribution.type="$ES_DISTRIBUTION_TYPE" \
   30   -cp "$ES_CLASSPATH" \
   31   "$ES_MAIN_CLASS" \
   32   "$@"