give the caller clues if they don't set a version

This commit is contained in:
Brenda Wallace committed 2019-08-04 16:21:31 +12:00
1 parent 8d745ed322
commit 080e0dbc78
1 file changed
+3 -2
+3 -2
View File
@@ -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