Skip to content

Instantly share code, notes, and snippets.

@gjackson12
Created December 13, 2017 06:47
Show Gist options
  • Select an option

  • Save gjackson12/c41c756edb7bc32a9e54d71225cb1b3b to your computer and use it in GitHub Desktop.

Select an option

Save gjackson12/c41c756edb7bc32a9e54d71225cb1b3b to your computer and use it in GitHub Desktop.
Sample Shell Script
#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