X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/blobdiff_plain/727191c36d0b5f1cc29cbd99ea21b558ba3bfd31..5ba520ed8f5b7c6d755cb7fb93a30c9828e7bb51:/debian/invirt-dev.prerm?ds=sidebyside 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)