X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/727191c36d0b5f1cc29cbd99ea21b558ba3bfd31..fc9beda05f67ce8e101598ae8a7a3500e3e836e9:/debian/invirt-dev.prerm diff --git a/debian/invirt-dev.prerm b/debian/invirt-dev.prerm index c86e7d3..3a0d421 100755 --- a/debian/invirt-dev.prerm +++ b/debian/invirt-dev.prerm @@ -19,7 +19,9 @@ set -e case "$1" in remove|upgrade|deconfigure) - perl -i.bak -ne 's%^### (BEGIN|END) invirt-dev\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers + [ "$1" = "remove" ] && update-inetd --disable git + + perl -i.bak -ne 'print unless /^### BEGIN invirt-dev/../^### END invirt-dev/' /etc/sudoers ;; failed-upgrade)