From d6d4085809b9e19e15849c55a8b135153aa3f49c Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sat, 10 Oct 2015 16:48:49 +0000 Subject: [PATCH] munin setup may show '/bin/rm: missing operand', fixes #527 --- setup/munin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/munin.sh b/setup/munin.sh index d0ce73d0..0cee9bad 100755 --- a/setup/munin.sh +++ b/setup/munin.sh @@ -38,7 +38,7 @@ munin-node-configure --shell --remove-also 2>/dev/null | sh # Deactivate monitoring of NTP peers. Not sure why anyone would want to monitor a NTP peer. The addresses seem to change # (which is taken care of my munin-node-configure, but only when we re-run it.) -find /etc/munin/plugins/ -lname /usr/share/munin/plugins/ntp_ -print0 | xargs -0 /bin/rm +find /etc/munin/plugins/ -lname /usr/share/munin/plugins/ntp_ -print0 | xargs -0 /bin/rm -f # Deactivate monitoring of network interfaces that are not up. Otherwise we can get a lot of empty charts. for f in $(find /etc/munin/plugins/ \( -lname /usr/share/munin/plugins/if_ -o -lname /usr/share/munin/plugins/if_err_ -o -lname /usr/share/munin/plugins/bonding_err_ \)); do