maddinxx
2012-08-15 a8ccf60181373b68ca8bb77ca45f879e1aea9c0b
server/cron_daily.php
@@ -348,6 +348,13 @@
   exec("cat /dev/null > $logfile");
}
// rotate the auth.log when it exceeds a size of 10 MB
$logfile = $conf['ispconfig_log_dir'].'/auth.log';
if(is_file($logfile) && filesize($logfile) > 10000000) {
   exec("gzip -c $logfile > $logfile.1.gz");
   exec("cat /dev/null > $logfile");
}
#######################################################################################################
// Cleanup website tmp directories
#######################################################################################################