aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/squid/squid.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 86fb61a0..102eef8c 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -554,7 +554,7 @@ function squid_install_cron($should_install) {
return;
$x=0;
foreach($config['cron']['item'] as $item) {
- if(strstr($item['command'], "/usr/local/sbin/squid")) {
+ if(strstr($item['task_name'], "squid_rotate_logs")) {
$is_installed = true;
break;
}
@@ -564,6 +564,7 @@ function squid_install_cron($should_install) {
case true:
if(!$is_installed) {
$cron_item = array();
+ $cron_item['task_name'] = "squid_rotate_logs";
$cron_item['minute'] = "0";
$cron_item['hour'] = "0";
$cron_item['mday'] = "*";