mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Plugin proftpd_count: fix autoconf handling
This commit is contained in:
parent
68eddb5865
commit
e62a8e3142
@ -25,13 +25,12 @@ LOGTAIL=${logtail:-`which logtail`}
|
|||||||
STATEFILE=$MUNIN_PLUGSTATE/xferlog-count.offset
|
STATEFILE=$MUNIN_PLUGSTATE/xferlog-count.offset
|
||||||
|
|
||||||
if [ "$1" = "autoconf" ]; then
|
if [ "$1" = "autoconf" ]; then
|
||||||
if [ -f "${LOGFILE}" -a -n "${LOGTAIL}" -a -x "${LOGTAIL}" ] ; then
|
if [ -f "$LOGFILE" ] && [ -n "$LOGTAIL" ] && [ -x "$LOGTAIL" ] ; then
|
||||||
echo yes
|
echo yes
|
||||||
exit 0
|
else
|
||||||
else
|
echo "no (missing logfile or 'logtail' executable)"
|
||||||
echo no
|
fi
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user