X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/xvm-munin-config.git/blobdiff_plain/a6e55582d9669aa25c056cfa2d5b4f7f2db06724..930b253816980ad014aaecef70ed6e9f5b4b6829:/debian/xvm-munin-host-config.prerm diff --git a/debian/xvm-munin-host-config.prerm b/debian/xvm-munin-host-config.prerm index 3306876..b8ba0ec 100755 --- a/debian/xvm-munin-host-config.prerm +++ b/debian/xvm-munin-host-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)