-
-
Save Alino/87d748ea8e463b654b1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
exec $ES_HOME/bin/elasticsearch "$@" | |
echo 'waiting for elasticsearch server to come up...' | |
until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:9200); do | |
printf '.' | |
sleep 2 | |
done | |
./$ES_HOME/createMappings.sh | |
exec "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment