X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/blobdiff_plain/28710237c927289d59a043452f15438690e1f6f9..e992cc6907d169245bba4a1ea4959691ec70c960:/debian/invirt-console-host.postinst diff --git a/debian/invirt-console-host.postinst b/debian/invirt-console-host.postinst index d2c7c08..9f4b5a8 100755 --- a/debian/invirt-console-host.postinst +++ b/debian/invirt-console-host.postinst @@ -20,6 +20,9 @@ set -e case "$1" in configure) + # Clean up the old sudoers line before we add it back + perl -i.bak -ne 's%^### (BEGIN|END) invirt-console-host\s*$%%m && ($skip = ($1 eq "BEGIN")); print unless $skip;' /etc/sudoers + cat >>/etc/sudoers <