From bd0ff0947c44862f146b8aef9ee6ad4daecb2236 Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Thu, 13 Apr 2017 12:51:43 +0300 Subject: [PATCH] be more clear --- plugins/postfix/postfix_stats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/postfix/postfix_stats b/plugins/postfix/postfix_stats index 7107c3dc..34a35bca 100755 --- a/plugins/postfix/postfix_stats +++ b/plugins/postfix/postfix_stats @@ -59,7 +59,7 @@ GPLv2 =cut #set -xv -SYS_LOG="${logfiles:-/var/log/mail.log /var/log/mail.log.1}" +MAIL_LOG="${logfiles:-/var/log/mail.log /var/log/mail.log.1}" GREP_HOSTNAME="${0##*postfix_stats_}" @@ -117,9 +117,9 @@ fi # Variable to store the pflogsumm result. # shellcheck disable=SC2086 if [ -n "${GREP_HOSTNAME}" ]; then - TMP_RAW=$(grep -h " ${GREP_HOSTNAME} postfix/" ${SYS_LOG} | "${PFLOGSUMM}" -d today --detail 0 --zero-fill) + TMP_RAW=$(grep -h " ${GREP_HOSTNAME} postfix/" ${MAIL_LOG} | "${PFLOGSUMM}" -d today --detail 0 --zero-fill) else - TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${SYS_LOG}") + TMP_RAW=$("${PFLOGSUMM}" -d today --detail 0 --zero-fill "${MAIL_LOG}") fi # Parse value from Raw result