Changeset 2248 for trunk


Ignore:
Timestamp:
Mar 14, 2009, 11:39:26 AM (16 years ago)
Author:
quentin
Message:

Be more cautious about removing munin plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/xvm-munin-config/debian/xvm-munin-host-config.postinst

    r2247 r2248  
    3838        munin-node-configure --suggest --shell | sh
    3939
    40         (cd /etc/munin/plugins;
     40        (cd /etc/munin/plugins &&
    4141            for i in smart_*; do
    42                 if smartctl -i /dev/${i#smart_} | grep Device | grep EQLOGIC; then
    43                     rm -v $i;
     42                if smartctl -i "/dev/${i#smart_}" | grep Device | grep EQLOGIC; then
     43                    rm -v "$i";
    4444                fi
    4545            done)
Note: See TracChangeset for help on using the changeset viewer.