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