Ignore:
Timestamp:
Nov 25, 2008, 8:10:09 AM (16 years ago)
Author:
broder
Message:

Don't just keep adding to the sudoers file in xvm-munin-config

File:
1 edited

Legend:

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

    r1765 r1767  
    2424        adduser munin adm
    2525       
     26        # First clear out the old stuff we threw in /etc/sudoers
     27        perl -i.bak -ne 's%^### (BEGIN|END) xvm-munin-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
     28       
    2629        # So munin can sudo to get to postfix queue info
     30        # and smartctl info
     31        # and info about running domains
    2732        cat >>/etc/sudoers <<EOF
    2833### BEGIN xvm-munin-config
Note: See TracChangeset for help on using the changeset viewer.