From 446888a8612f0417e060affbea2c5b6cec10f093 Mon Sep 17 00:00:00 2001 From: Robin Kluth Date: Mon, 24 Apr 2023 19:00:27 +0200 Subject: [PATCH] =?UTF-8?q?Cron=20fix=20#4!=20=F0=9F=A4=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/include/ABSettings.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/include/ABSettings.php b/src/include/ABSettings.php index 2f859bc..238949d 100644 --- a/src/include/ABSettings.php +++ b/src/include/ABSettings.php @@ -175,12 +175,11 @@ public function checkCron() { if (!empty($cronSettings)) { $cronSettings .= ' php ' . dirname(__DIR__) . '/scripts/backup.php > /dev/null 2>&1'; file_put_contents(ABSettings::$pluginDir . '/' . ABSettings::$cronFile, $cronSettings . PHP_EOL); - - // Let dcron know our changes via update_cron - exec("update_cron"); } elseif (file_exists(ABSettings::$pluginDir . '/' . ABSettings::$cronFile)) { unlink(ABSettings::$pluginDir . '/' . ABSettings::$cronFile); } + // Let dcron know our changes via update_cron + exec("update_cron"); } }