mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 17:28:26 -04:00
give the caller clues if they don't set a version
This commit is contained in:
1 parent
8d745ed322
commit
080e0dbc78
1 file changed
+3
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user