Files
monica/scripts/docker/waitfordb.sh
T
Alexis Saettler 851ba981f6 Docker run real cron (#906)
* Use crontab for schedules
* Update apache conf file
* Clean composer cache after installation
* Clean apk cache after installation
2018-02-22 22:27:36 +01:00

13 lines
228 B
Bash
Executable File

#!/bin/sh
echo "Connecting to ${DB_HOST}:${DB_PORT}"
while true; do
nc -z ${DB_HOST} ${DB_PORT} && break
echo "Waiting for ${DB_HOST}:${DB_PORT} ..."
sleep 1
done
echo "Waiting for database to settle ..."
sleep 3