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
#!/usr/bin/env bash | |
# Waits for a Postgres database to be ready before calling the passed | |
# command. After each failed attempt to reach the database, the script | |
# sleeps for a fixed period of time (versus an exponential backoff). | |
# | |
# The database connection arguments are to be passed to psql via | |
# the standard Postgres environment variables. | |
# | |
# Unfortunately the way this script works, the Postgres client must |
OlderNewer