X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-munin-config.git/blobdiff_plain/75ea3dcbd8ad5baa6fc2cf734666a2ab3ba3cd55..HEAD:/debian/xvm-munin-remote-config.prerm diff --git a/debian/xvm-munin-remote-config.prerm b/debian/xvm-munin-remote-config.prerm index 3306876..b8ba0ec 100755 --- a/debian/xvm-munin-remote-config.prerm +++ b/debian/xvm-munin-remote-config.prerm @@ -19,7 +19,7 @@ set -e case "$1" in remove|upgrade|deconfigure) - perl -i.bak -ne 's%^### (BEGIN|END) xvm-munin-config\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers + perl -i.bak -ne 'print unless /^### BEGIN xvm-munin-config/../^### END xvm-munin-config/' /etc/sudoers ;; failed-upgrade)