2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-03-28 01:20:38 +01:00
docker/2019.12-rc/fpm/cron.sh
2019-12-10 22:17:35 +01:00

12 lines
344 B
Bash
Executable file

#!/bin/sh
trap "break;exit" HUP INT TERM
while [ ! -f /var/www/html/bin/daemon.php ]; do
sleep 1
done
echo "Waiting for MySQL $MYSQL_HOST initialization..."
if /usr/local/bin/wait-for-connection "$MYSQL_HOST" "$MYSQL_PORT" 300; then
exec php /var/www/html/bin/daemon.php -f start
echo "[ERROR] Waited 300 seconds, no response" >&2
fi