summaryrefslogtreecommitdiffstats
path: root/charts/aai-elasticsearch/resources/bin/wait_until_started.sh
blob: 279253b43d4d65e3639b37d7a517735cffce9a0f (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
RET=1

while [[ RET -ne 0 ]]; do
    echo "Waiting for Elasticsearch to become ready before running sgadmin..."
    curl -XGET -k "https://localhost:{{ .Values.service.internalPort }}/" >/dev/null 2>&1
    RET=$?
    sleep 5
done