From 2b981db1d90e6cf8ba24c8dd636a4fe611fa7342 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Fri, 21 Aug 2020 11:52:24 -0400 Subject: [PATCH] Remove nextcloud cron job when miab nextcloud is disabled --- setup/mods.available/remote-nextcloud.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/mods.available/remote-nextcloud.sh b/setup/mods.available/remote-nextcloud.sh index b50add94..8be13fb3 100755 --- a/setup/mods.available/remote-nextcloud.sh +++ b/setup/mods.available/remote-nextcloud.sh @@ -147,8 +147,10 @@ remote_nextcloud_handler() { # configure zpush (which links to contacts & calendar) configure_zpush - # prevent nginx from serving any miab-installed nextcloud files + # prevent nginx from serving any miab-installed nextcloud + # files and remove owncloud cron job chmod 000 /usr/local/lib/owncloud + rm -f /etc/cron.d/mailinabox-nextcloud fi tools/editconf.py /etc/mailinabox_mods.conf \