Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [ ${NODENAME} != ""`curl -s ${HOSTNAME}:9200/_cat/master\?h=node` ] ;
- do echo "waiting for ${NODENAME} to elect itself master" ;
- sleep 5 ;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement