Move cron scripts

Move cron scripts to their own subfolder.
This commit is contained in:
wrongecho
2024-12-30 17:31:34 +00:00
parent 955f7c3f3b
commit df19709c2f
7 changed files with 1958 additions and 2 deletions

View File

@@ -1,5 +1,8 @@
<?php
// Cron scripts have now moved to the /scripts folder
// This file will soon be removed from the project
// Set working directory to the directory this cron script lives at.
chdir(dirname(__FILE__));
@@ -1003,8 +1006,9 @@ if ($updates->current_version !== $updates->latest_version) {
* ###############################################################################################################
*/
// Send Alert to inform Cron was run
appNotify("Cron", "Cron successfully executed", "admin_audit_log.php");
// Alert we're using the old cron path
appNotify("Cron", "Cron ran OK, but paths need updating - cron scripts are now in the scripts subfolder", "admin_audit_log.php");
// Logging
logApp("Cron", "info", "Cron executed successfully");
logApp("Cron", "warning", "Cron ran using an old script path");