From c18e6be175e6e0e2939fd8dde7dcd1138a97a0a3 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 9 May 2014 13:30:32 -0400 Subject: Correct check --- config/mailreport/mail_reports.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/mailreport') diff --git a/config/mailreport/mail_reports.inc b/config/mailreport/mail_reports.inc index 2742844b..0119457a 100644 --- a/config/mailreport/mail_reports.inc +++ b/config/mailreport/mail_reports.inc @@ -1245,7 +1245,7 @@ function mail_report_get_log($logfile, $tail, $grepfor) { } else { if (is_executable("/usr/local/sbin/clog")) { exec("/usr/local/sbin/clog {$logfile}{$grepline}| grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail -n {$tail}", $logarr); - } elseif (is_executable("/usr/local/sbin/clog")) { + } elseif (is_executable("/usr/sbin/clog")) { exec("/usr/sbin/clog {$logfile}{$grepline}| grep -v \"CLOG\" | grep -v \"\033\" | /usr/bin/tail -n {$tail}", $logarr); } else { $logarr = array("Cannot locate clog which is required for reading log files."); -- cgit v1.2.3