Skip to content

Commit

Permalink
Cron fix #4! 🤬
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Apr 24, 2023
1 parent bcfe851 commit 446888a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/include/ABSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

}
Expand Down

0 comments on commit 446888a

Please sign in to comment.