1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

Plugin lxc: exit after autoconf

Previously processing continued after a successful autoconf operation.
This commit is contained in:
Lars Kruse 2019-08-11 23:36:12 +02:00
parent 6696a4d894
commit d004990b21

View file

@ -179,14 +179,12 @@ active_guests=$(active_guests $exclude)
if [ "$1" = "autoconf" ]; then
if [ ! -r /proc/net/dev ]; then
echo "no (/proc/net/dev cannot be read)"
exit 0
fi
if [ ! -e "$lxcpath" ]; then
elif [ ! -e "$lxcpath" ]; then
echo "no ($lxcpath is not present)"
exit 0
fi
else
echo yes
fi
exit 0
fi
# --- CONFIG OUTPUT