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