Use cron.sh for the cron container

This commit is contained in:
Tilo Spannagel 2018-02-06 20:40:49 +01:00
parent 71380e0a92
commit 8db861d67f
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
1 changed files with 1 additions and 14 deletions

View File

@ -31,20 +31,7 @@ services:
restart: always
volumes:
- nextcloud:/var/www/html
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
while [ ! -f /var/www/html/config/config.php ]; do
sleep 1
done
while true; do
php -f /var/www/html/cron.php
sleep 15m
done
EOF'
entrypoint: /cron.sh
depends_on:
- db