Replace Elastic connection check using ELASTICCURL with so-elasticsearch-query

This commit is contained in:
Wes Lambert
2022-03-15 14:55:04 +00:00
parent 5f56c7a261
commit 42d6c3a956

View File

@@ -30,7 +30,7 @@ echo -n "Waiting for ElasticSearch..."
COUNT=0
ELASTICSEARCH_CONNECTED="no"
while [[ "$COUNT" -le 240 ]]; do
{{ ELASTICCURL }} -k --output /dev/null --silent --head --fail -L https://"$ELASTICSEARCH_HOST":"$ELASTICSEARCH_PORT"
so-elasticsearch-query -k --output /dev/null --silent --head --fail
if [ $? -eq 0 ]; then
ELASTICSEARCH_CONNECTED="yes"
echo "connected!"