Created
December 13, 2017 06:47
-
-
Save gjackson12/c41c756edb7bc32a9e54d71225cb1b3b to your computer and use it in GitHub Desktop.
Sample Shell Script
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
| #check_psql() { | |
| # curl gjackson-ckan-postgres:5432 2>/dev/null | |
| # if [ $? -ne 52 ] | |
| # then | |
| # return 1 | |
| # fi | |
| # return 0 | |
| #} | |
| #while ! check_psql | |
| #do | |
| # echo "$(date) - still checking if docker image gjackson-ckan-postgres is running on port 5432, this will not end until it is running" | |
| # sleep 1 | |
| #done | |
| #echo "$(date) - postgres is running on port 5432" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment