From 3bba29b440aa05f25e898a22d11db58934ca7924 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Tue, 25 Nov 2008 08:16:32 -0500 Subject: [PATCH 1/1] Clear out the old sudoers block before re-adding it in invirt-console-host svn path=/trunk/packages/invirt-console-host/; revision=1769 --- debian/changelog | 6 ++++++ debian/invirt-console-host.postinst | 3 +++ 2 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5cd9a54..d0f3ce7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-console-host (0.0.10) unstable; urgency=low + + * Clean up the old sudoers block in the postinst before we add it back + + -- Evan Broder Tue, 25 Nov 2008 08:13:32 -0500 + invirt-console-host (0.0.9) unstable; urgency=low * Add cron dependency 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 <