1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Plugins xen_*: fix 'autoconf' logic and exitcode

This commit is contained in:
Lars Kruse 2018-08-01 23:51:50 +02:00
parent 4b4a6a01e1
commit 4d2d1fb94b
3 changed files with 14 additions and 20 deletions

View file

@ -15,12 +15,12 @@
XM='/usr/sbin/xm'
if [ "$1" = "autoconf" ]; then
if [ -e $XM ]; then
if [ -x "$XM" ]; then
echo yes
exit 0
else
echo "no (xm not found)"
fi
echo "no (xm not found)"
exit 1
exit 0
fi
if [ "$1" = "config" ]; then