Changeset 1769 for trunk


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

Clear out the old sudoers block before re-adding it in
invirt-console-host

Location:
trunk/packages/invirt-console-host/debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-console-host/debian/changelog

    r1725 r1769  
     1invirt-console-host (0.0.10) unstable; urgency=low
     2
     3  * Clean up the old sudoers block in the postinst before we add it back
     4
     5 -- Evan Broder <broder@mit.edu>  Tue, 25 Nov 2008 08:13:32 -0500
     6
    17invirt-console-host (0.0.9) unstable; urgency=low
    28
  • trunk/packages/invirt-console-host/debian/invirt-console-host.postinst

    r1187 r1769  
    2121case "$1" in
    2222    configure)
     23        # Clean up the old sudoers line before we add it back
     24        perl -i.bak -ne 's%^### (BEGIN|END) invirt-console-host\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
     25       
    2326        cat >>/etc/sudoers <<EOF
    2427### BEGIN invirt-console-host
Note: See TracChangeset for help on using the changeset viewer.