From 01ba195787371c4f23b04d8f25c159474240d9e2 Mon Sep 17 00:00:00 2001 From: Philip Haupt <“der.mad.mob@gmail.com”> Date: Sat, 15 Nov 2025 13:49:04 +0100 Subject: [PATCH] nextcloud cron --- nextcloud/main.yaml | 6 +++++- nextcloud/src/values.yaml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nextcloud/main.yaml b/nextcloud/main.yaml index 1ff2552..13bfbfa 100644 --- a/nextcloud/main.yaml +++ b/nextcloud/main.yaml @@ -450,7 +450,11 @@ spec: name: nextcloud-config subPath: upgrade-disable-web.config.php - command: - - /cron.sh + - /bin/sh + - -c + - | + echo "*/1 * * * * php -f /var/www/html/cron.php" > /etc/crontabs/www-data + exec busybox crond -f -L /dev/stdout env: - name: POSTGRES_HOST valueFrom: diff --git a/nextcloud/src/values.yaml b/nextcloud/src/values.yaml index 1c52f2d..d386a69 100644 --- a/nextcloud/src/values.yaml +++ b/nextcloud/src/values.yaml @@ -639,7 +639,11 @@ cronjob: # The command the cronjob container executes. command: - - /cron.sh + - /bin/sh + - -c + - | + echo "*/1 * * * * php -f /var/www/html/cron.php" > /etc/crontabs/www-data + exec busybox crond -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.