From b42b0a71df4f10b2e3f0d48d380c3507cd10748b Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 16 May 2021 01:26:43 -0700 Subject: [PATCH] Add access.log to log rotation --- Rocksolid_Light/rslight/scripts/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/rslight/scripts/cron.php b/Rocksolid_Light/rslight/scripts/cron.php index 8325ea5..2e98c4b 100755 --- a/Rocksolid_Light/rslight/scripts/cron.php +++ b/Rocksolid_Light/rslight/scripts/cron.php @@ -72,7 +72,7 @@ function log_rotate() { global $logdir; $rotate = filemtime($logdir.'/rotate'); if((time() - $rotate) > 86400) { - $log_files = array('nntp.log', 'spoolnews.log', 'nocem.log', 'newsportal.log', 'expire.log'); + $log_files = array('nntp.log', 'spoolnews.log', 'nocem.log', 'newsportal.log', 'expire.log', 'access.log'); foreach($log_files as $logfile) { $logfile=$logdir.'/'.$logfile; if(!is_file($logfile)) {