From e62a8e31425892485e6b4c6e8d26d07c2e2609ee Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Thu, 2 Aug 2018 00:14:41 +0200 Subject: [PATCH] Plugin proftpd_count: fix autoconf handling --- plugins/ftp/proftpd_count | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/plugins/ftp/proftpd_count b/plugins/ftp/proftpd_count index 13f50eec..d147c49a 100755 --- a/plugins/ftp/proftpd_count +++ b/plugins/ftp/proftpd_count @@ -25,13 +25,12 @@ LOGTAIL=${logtail:-`which logtail`} STATEFILE=$MUNIN_PLUGSTATE/xferlog-count.offset if [ "$1" = "autoconf" ]; then - if [ -f "${LOGFILE}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then - echo yes - exit 0 - else - echo no - exit 1 - fi + if [ -f "$LOGFILE" ] && [ -n "$LOGTAIL" ] && [ -x "$LOGTAIL" ] ; then + echo yes + else + echo "no (missing logfile or 'logtail' executable)" + fi + exit 0 fi if [ "$1" = "config" ]; then