Ignore:
Timestamp:
Nov 25, 2008, 11:16:02 PM (16 years ago)
Author:
broder
Message:

Move invirt-dev's sudoers cleanup to the prerm instead of the postinst

Location:
trunk/packages/invirt-dev/debian
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/debian/changelog

    r1770 r1782  
     1invirt-dev (0.0.10) unstable; urgency=low
     2
     3  * Clean up /etc/sudoers in the prerm instead of the postinst
     4
     5 -- Evan Broder <broder@mit.edu>  Tue, 25 Nov 2008 23:09:03 -0500
     6
    17invirt-dev (0.0.9) unstable; urgency=low
    28
  • trunk/packages/invirt-dev/debian/invirt-dev.postinst

    r1770 r1782  
    99            adduser --system repository
    1010            addgroup --system repo
    11            
    12             # Clean up the old sudoers block, then add it back
    13             perl -i.bak -ne 's%^### (BEGIN|END) invirt-dev\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers
    1411           
    1512            cat >>/etc/sudoers <<EOF
Note: See TracChangeset for help on using the changeset viewer.