Skip to content

Instantly share code, notes, and snippets.

@evilkost
Created June 18, 2017 21:39
Show Gist options
  • Save evilkost/2f217e5ab457d8f9419a626b53c887ce to your computer and use it in GitHub Desktop.
Save evilkost/2f217e5ab457d8f9419a626b53c887ce to your computer and use it in GitHub Desktop.
#!/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