Created
June 18, 2017 21:39
-
-
Save evilkost/2f217e5ab457d8f9419a626b53c887ce to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
set -e | |
while [[ `pg_isready &>/dev/null && echo "1"` -ne "1" ]]; do | |
sleep 1; | |
echo "pg is not ready"; | |
done | |
echo "pg is ready"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment