2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-11-13 04:43:44 +01:00
docker/2018.12-dev/apache/cron.sh
Philipp Holzer c485511739
Adding support for new *.config.php format.
But add backward compatibility for old *.ini.php too
2018-12-29 21:34:21 +01:00

12 lines
309 B
Bash

#!/bin/sh
trap "break;exit" HUP INT TERM
while [ ! -f /var/www/html/config/local.ini.php ] || [ ! -f /var/www/html/config/local.config.php ]; do
sleep 1
done
# TODO let the database and the autoinstall time to complete - not winning a beauty contest
sleep 15s
php /var/www/html/bin/daemon.php -f start