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:
parent
4b4a6a01e1
commit
4d2d1fb94b
3 changed files with 14 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue