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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.