mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
366 B
15 lines
366 B
6 years ago
|
#!/bin/bash
|
||
|
|
||
|
echo "Waiting for solr connection at $SOLR_URL ..."
|
||
|
while true; do
|
||
|
echo "$SOLR_URL/solr/admin/collections?action=LIST"
|
||
|
RESULT=$(curl -s -o /dev/null -I "$SOLR_URL/solr/admin/collections?action=LIST" -w '%{http_code}')
|
||
|
echo $RESULT
|
||
|
if [ "$RESULT" -eq '200' ]; then
|
||
|
echo "Solr server is up!"
|
||
|
break
|
||
|
else
|
||
|
sleep 3
|
||
|
fi
|
||
|
done
|