mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Improve incorrect or unspecific output for "autoconf"
Some plugins emit wrongly formatted "no" messages or lack the "yes" message on success.
This commit is contained in:
parent
e4cd049b01
commit
2ec4e4c1f7
20 changed files with 68 additions and 99 deletions
|
@ -28,16 +28,15 @@
|
|||
|
||||
if [ "$1" = "autoconf" ]; then
|
||||
if [ -z "$(which amule)" ]; then
|
||||
echo "$0: error: amule not installed"
|
||||
exit 1
|
||||
echo "no (amule not installed)"
|
||||
else
|
||||
if [ ! -e /tmp/amulesig.dat ]; then
|
||||
echo "$0: error: amulesig.dat not found"
|
||||
echo "no (amulesig.dat not found)"
|
||||
else
|
||||
echo yes
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue