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.