From 97c95be922285e0b5aed046e364f6d122314f972 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Sat, 17 Sep 2022 21:36:10 -0400 Subject: [PATCH] Added CalDAV calendar updates cron job per NC docs --- setup/nextcloud.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index ee4b3ebd..43edfaf6 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -391,6 +391,16 @@ cat > /etc/cron.d/mailinabox-nextcloud << EOF; EOF chmod +x /etc/cron.d/mailinabox-nextcloud +# Set up a cron job for Calendar updates, per advice in the Nextcloud docs +# https://docs.nextcloud.com/server/24/admin_manual/groupware/calendar.html#background-jobs +cat > /etc/cron.d/mailinabox-nextcloud-dav << EOF; +#!/bin/bash +# Mail-in-a-Box +*/5 * * * * root sudo -u www-data php$PHP_VER -f /usr/local/lib/owncloud/occ dav:send-event-reminders +EOF +chmod +x /etc/cron.d/mailinabox-nextcloud +sudo -u www-data php$PHP_VER -f /usr/local/lib/owncloud/occ config:app:set dav sendEventRemindersMode --value occ + # Rotate the nextcloud.log file cat > /etc/logrotate.d/nextcloud <