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

@@ -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.