From 66f3bb915e3796ae5aedbd08681669914ad5dcca Mon Sep 17 00:00:00 2001 From: Robin Kluth Date: Fri, 21 Apr 2023 10:45:57 +0200 Subject: [PATCH] Silence cron --- src/include/ABSettings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/ABSettings.php b/src/include/ABSettings.php index c5ac2f7..ffeeead 100644 --- a/src/include/ABSettings.php +++ b/src/include/ABSettings.php @@ -167,7 +167,7 @@ public function checkCron() { } if (!empty($cronSettings)) { - $cronSettings .= ' php ' . dirname(__DIR__) . '/scripts/backup.php'; + $cronSettings .= ' php ' . dirname(__DIR__) . '/scripts/backup.php > /dev/null 2>&1'; file_put_contents(ABSettings::$cronFile, $cronSettings); // Restart dcron, that forces a re-read of /etc/cron.d. Otherwise, we have to wait one hour, because dcron read cron.d files once an hour.