mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin proftpd_count: fix autoconf handling
This commit is contained in:
parent
68eddb5865
commit
e62a8e3142
1 changed files with 6 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue