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-remote-config.postinst

    r1761 r1767  
    2323        # So munin can read the mail log
    2424        adduser munin adm
     25       
     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
    2528       
    2629        # So munin can sudo to get to postfix queue info
Note: See TracChangeset for help on using the changeset viewer.