From e38d145b1b5392e9a88101f7dd5a31173e4cfa90 Mon Sep 17 00:00:00 2001 From: jwarnier <jwarnier@ispconfig3> Date: Fri, 24 Sep 2010 21:26:50 -0400 Subject: [PATCH] - setup and use $conf['ispconfig_log_dir'], somehow replacing ISPC_LOG_PATH/$conf['logpath'] - replace double-quotes with single-quotes whenever appropriate - fix indentation --- server/cron_daily.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index b93e099..05df3d3 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -228,14 +228,14 @@ ####################################################################################################### // rotate the ispconfig.log when it exceeds a size of 10 MB -$logfile = '/var/log/ispconfig/ispconfig.log'; +$logfile = $conf['ispconfig_log_dir'].'/ispconfig.log'; if(is_file($logfile) && filesize($logfile) > 10000000) { exec("gzip -c $logfile > $logfile.1.gz"); exec("cat /dev/null > $logfile"); } // rotate the cron.log when it exceeds a size of 10 MB -$logfile = '/var/log/ispconfig/cron.log'; +$logfile = $conf['ispconfig_log_dir'].'/cron.log'; if(is_file($logfile) && filesize($logfile) > 10000000) { exec("gzip -c $logfile > $logfile.1.gz"); exec("cat /dev/null > $logfile"); -- Gitblit v1.9.1