Skip to content

Instantly share code, notes, and snippets.

@Alino
Created February 2, 2016 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alino/87d748ea8e463b654b1b to your computer and use it in GitHub Desktop.
Save Alino/87d748ea8e463b654b1b to your computer and use it in GitHub Desktop.
#!/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