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

Location:
trunk/packages/xvm-munin-config/debian
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/xvm-munin-config/debian/changelog

    r1761 r1767  
     1xvm-munin-config (0.0.2) unstable; urgency=low
     2
     3  [ Quentin Smith ]
     4  * Add a monitoring script for domain CPU utilization
     5 
     6  [ Evan Broder ]
     7  * Don't just keep adding to the sudoers file
     8
     9 -- Evan Broder <broder@mit.edu>  Tue, 25 Nov 2008 08:08:26 -0500
     10
    111xvm-munin-config (0.0.1) unstable; urgency=low
    212
  • trunk/packages/xvm-munin-config/debian/xvm-munin-console-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
  • 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
  • trunk/packages/xvm-munin-config/debian/xvm-munin-master-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
  • 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.