nextcloud-cron korrigiert.

This commit is contained in:
2025-08-22 14:33:00 +02:00
parent 9700969bc4
commit 9ece2ad290

View File

@@ -24,10 +24,12 @@ services:
image: nextcloud:latest image: nextcloud:latest
container_name: nextcloud-cron container_name: nextcloud-cron
restart: always restart: always
entrypoint: ["/bin/sh", "-c"] entrypoint: /cron.sh
command: > command:
echo "*/5 * * * * www-data pgrep -f 'cron.php' > /dev/null || php -f /var/www/html/cron.php" - -c
> /etc/crontabs/root && crond -f -l 2 - |
echo "*/5 * * * * www-data pgrep -f 'cron.php' > /dev/null || php -f /var/www/html/cron.php" > /etc/crontabs/root
crond -f -l 2
volumes: volumes:
- /mnt/nextcloud/nextcloud/html:/var/www/html - /mnt/nextcloud/nextcloud/html:/var/www/html
- /mnt/nextcloud/nextcloud/apps:/var/www/html/custom_apps - /mnt/nextcloud/nextcloud/apps:/var/www/html/custom_apps