From 080e0dbc7833001a0498fb5218bfc2f2f877a927 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 4 Aug 2019 16:21:31 +1200 Subject: [PATCH] give the caller clues if they don't set a version --- script/install_elasticsearch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/install_elasticsearch.sh b/script/install_elasticsearch.sh index 0c9e5d977..b1c68ba72 100755 --- a/script/install_elasticsearch.sh +++ b/script/install_elasticsearch.sh @@ -1,7 +1,8 @@ #!/bin/bash -if [ "${GROWSTUFF_ELASTICSEARCH}" = "true" ]; then - [[ -z "$ELASTIC_SEARCH_VERSION" ]] && ELASTIC_SEARCH_VERSION="6.2.3" +if [[ -z "$ELASTIC_SEARCH_VERSION" ]]; then + echo "ELASTIC_SEARCH_VERSION variable not set" +else set -euv sudo dpkg -r elasticsearch wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ELASTIC_SEARCH_VERSION}.deb