This commit is contained in:
Philip Haupt
2025-11-15 14:01:35 +01:00
parent 01ba195787
commit 848f2bfdff
2 changed files with 6 additions and 5 deletions

View File

@@ -642,8 +642,9 @@ cronjob:
- /bin/sh
- -c
- |
echo "*/1 * * * * php -f /var/www/html/cron.php" > /etc/crontabs/www-data
exec busybox crond -f -L /dev/stdout
mkdir -p /etc/crontabs
echo "*/1 * * * * su -s /bin/sh -c 'php -f /var/www/html/cron.php' \#33" > /etc/crontabs/root
exec busybox crond -c /etc/crontabs -f -L /dev/stdout
# Uses a Kubernetes CronJob to execute the Nextcloud cron tasks
# Note: can run as non-root user. Should run as same user as the Nextcloud pod.