cron default

This commit is contained in:
Philip Haupt
2025-11-15 15:37:58 +01:00
parent 69f80d85a1
commit 2e0e3bb2a3
2 changed files with 10 additions and 14 deletions

View File

@@ -449,13 +449,7 @@ spec:
name: nextcloud-config name: nextcloud-config
subPath: upgrade-disable-web.config.php subPath: upgrade-disable-web.config.php
- command: - command:
- /bin/sh - /cron.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
env: env:
- name: POSTGRES_HOST - name: POSTGRES_HOST
valueFrom: valueFrom:

View File

@@ -639,13 +639,15 @@ cronjob:
# The command the cronjob container executes. # The command the cronjob container executes.
command: command:
- /bin/sh - /cron.sh
- -c # Modify schedule
- | # - /bin/sh
apt-get update && apt-get install -y gosu # - -c
mkdir -p /etc/crontabs # - |
echo "*/1 * * * * gosu 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root # apt-get update && apt-get install -y gosu
exec busybox crond -c /etc/crontabs -f -L /dev/stdout # 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 # 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. # Note: can run as non-root user. Should run as same user as the Nextcloud pod.