From 48319653301a7fac2bf622fdb7bebe7cd595cd58 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 28 Jul 2015 21:12:35 +0200 Subject: Bug #4612 - fix syslog-ng logrotate cron job Fix the path to logrotate binary. --- config/syslog-ng/syslog-ng.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/syslog-ng/syslog-ng.inc b/config/syslog-ng/syslog-ng.inc index bbec3a7c..1643c03f 100644 --- a/config/syslog-ng/syslog-ng.inc +++ b/config/syslog-ng/syslog-ng.inc @@ -165,7 +165,7 @@ function syslogng_install_cron($should_install) { $cron_item['month'] = "*"; $cron_item['wday'] = "*"; $cron_item['who'] = "root"; - $cron_item['command'] = "/usr/bin/nice -n20 /usr/local/sbin/logrotate /usr/local/etc/logrotate.conf"; + $cron_item['command'] = "/usr/bin/nice -n20 " . SYSLOGNG_BASEDIR . "local/sbin/logrotate /usr/local/etc/logrotate.conf"; $config['cron']['item'][] = $cron_item; $need_write = true; } -- cgit v1.2.3