fix cron
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user