This commit is contained in:
Philip Haupt
2025-11-15 14:01:35 +01:00
parent 01ba195787
commit 848f2bfdff
2 changed files with 6 additions and 5 deletions

View File

@@ -109,7 +109,6 @@ data:
'redis' => array( 'redis' => array(
'host' => getenv('REDIS_HOST'), 'host' => getenv('REDIS_HOST'),
'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'), 'password' => getenv('REDIS_HOST_PASSWORD_FILE') ? trim(file_get_contents(getenv('REDIS_HOST_PASSWORD_FILE'))) : (string) getenv('REDIS_HOST_PASSWORD'),
'dbindex' => 1,
), ),
); );
@@ -453,8 +452,9 @@ spec:
- /bin/sh - /bin/sh
- -c - -c
- | - |
echo "*/1 * * * * php -f /var/www/html/cron.php" > /etc/crontabs/www-data mkdir -p /etc/crontabs
exec busybox crond -f -L /dev/stdout echo "*/1 * * * * su -s /bin/sh -c 'php -f /var/www/html/cron.php' \#33" > /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

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