diff --git a/nextcloud/main.yaml b/nextcloud/main.yaml index 601da30..866f89c 100644 --- a/nextcloud/main.yaml +++ b/nextcloud/main.yaml @@ -449,13 +449,7 @@ spec: name: nextcloud-config subPath: upgrade-disable-web.config.php - command: - - /bin/sh - - -c - - | - apt-get update && apt-get install -y gosu - mkdir -p /etc/crontabs - echo "*/1 * * * * gosu 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root - exec busybox crond -c /etc/crontabs -f -L /dev/stdout + - /cron.sh env: - name: POSTGRES_HOST valueFrom: diff --git a/nextcloud/src/values.yaml b/nextcloud/src/values.yaml index 81f63f4..6ba5b8a 100644 --- a/nextcloud/src/values.yaml +++ b/nextcloud/src/values.yaml @@ -639,13 +639,15 @@ cronjob: # The command the cronjob container executes. command: - - /bin/sh - - -c - - | - apt-get update && apt-get install -y gosu - mkdir -p /etc/crontabs - echo "*/1 * * * * gosu 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root - exec busybox crond -c /etc/crontabs -f -L /dev/stdout + - /cron.sh + # Modify schedule + # - /bin/sh + # - -c + # - | + # apt-get update && apt-get install -y gosu + # mkdir -p /etc/crontabs + # echo "*/1 * * * * gosu 33:33 php -f /var/www/html/cron.php" > /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.