projects
/
invirt/packages/xvm-munin-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a7f9d2
)
Be more cautious about removing munin plugins
0.0.7
author
Quentin Smith
<quentin@mit.edu>
Sat, 14 Mar 2009 15:39:26 +0000
(11:39 -0400)
committer
Quentin Smith
<quentin@mit.edu>
Sat, 14 Mar 2009 15:39:26 +0000
(11:39 -0400)
svn path=/trunk/packages/xvm-munin-config/; revision=2248
debian/xvm-munin-host-config.postinst
patch
|
blob
|
history
diff --git
a/debian/xvm-munin-host-config.postinst
b/debian/xvm-munin-host-config.postinst
index
1f64371
..
fc2de88
100755
(executable)
--- a/
debian/xvm-munin-host-config.postinst
+++ b/
debian/xvm-munin-host-config.postinst
@@
-37,10
+37,10
@@
EOF
# Install munin plugins that are now configured
munin-node-configure --suggest --shell | sh
- (cd /etc/munin/plugins;
+ (cd /etc/munin/plugins &&
for i in smart_*; do
- if smartctl -i /dev/${i#smart_} | grep Device | grep EQLOGIC; then
- rm -v $i;
+ if smartctl -i "/dev/${i#smart_}" | grep Device | grep EQLOGIC; then
+ rm -v "$i";
fi
done)