mirror of
https://github.com/friendica/docker
synced 2025-01-10 20:41:49 +01:00
nupplaPhil
43b1640b80
- remove sleep - Add new binary "wait-for-connection" in /usr/local/bin - Use new possibility for auto-installer
12 lines
344 B
Bash
Executable file
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
|