This commit is contained in:
Philip Haupt
2025-11-15 14:04:23 +01:00
parent 848f2bfdff
commit 878a9c8a17
2 changed files with 4 additions and 2 deletions

View File

@@ -452,8 +452,9 @@ spec:
- /bin/sh - /bin/sh
- -c - -c
- | - |
apk add --no-cache su-exec
mkdir -p /etc/crontabs mkdir -p /etc/crontabs
echo "*/1 * * * * su -s /bin/sh -c 'php -f /var/www/html/cron.php' \#33" > /etc/crontabs/root echo "*/1 * * * * su-exec 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root
exec busybox crond -c /etc/crontabs -f -L /dev/stdout exec busybox crond -c /etc/crontabs -f -L /dev/stdout
env: env:
- name: POSTGRES_HOST - name: POSTGRES_HOST

View File

@@ -642,8 +642,9 @@ cronjob:
- /bin/sh - /bin/sh
- -c - -c
- | - |
apk add --no-cache su-exec
mkdir -p /etc/crontabs mkdir -p /etc/crontabs
echo "*/1 * * * * su -s /bin/sh -c 'php -f /var/www/html/cron.php' \#33" > /etc/crontabs/root echo "*/1 * * * * su-exec 33:33 php -f /var/www/html/cron.php" > /etc/crontabs/root
exec busybox crond -c /etc/crontabs -f -L /dev/stdout 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