1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00

Use exit status 0 for autoconf, provide reason for 'no' answer.

This commit is contained in:
Bas Couwenberg 2017-09-29 10:20:40 +02:00
parent f9426daca5
commit a86de7871a
16 changed files with 107 additions and 80 deletions

View file

@ -9,15 +9,16 @@
#%# family=auto
#%# capabilities=autoconf
command="/usr/bin/pdns_control show"
pdns_control="/usr/bin/pdns_control"
command="$pdns_control show"
if [ "$1" = "autoconf" ]; then
if [ -e /usr/bin/pdns_control ]; then
if [ -e "$pdns_control" ]; then
echo yes
exit 0
else
echo no
exit 1
echo "no (missing $pdns_control)"
exit 0
fi
fi