From: Evan Broder Date: Sun, 22 Nov 2009 22:58:22 +0000 (-0500) Subject: In invirt-dev: X-Git-Tag: 0.1.5~70 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dev.git/commitdiff_plain/9639ce25951176b93e4811052fe81e82e6c4e834?ds=sidebyside In invirt-dev: * Since the prerm code to remove the repo group from sudoers runs on upgrades, make sure the postinst code to add it back runs on all upgrades, too. svn path=/trunk/packages/invirt-dev/; revision=2556 --- diff --git a/debian/changelog b/debian/changelog index 14af9f1..d38a625 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,11 @@ invirt-dev (0.1.0) unstable; urgency=low * Switch to using git instead of svn. * Generate the apt repository configuration using gen-files instead of rolling our own. + * Since the prerm code to remove the repo group from sudoers runs on + upgrades, make sure the postinst code to add it back runs on all + upgrades, too. - -- Evan Broder Sun, 22 Nov 2009 15:57:59 -0500 + -- Evan Broder Sun, 22 Nov 2009 17:57:21 -0500 invirt-dev (0.0.14) unstable; urgency=low diff --git a/debian/invirt-dev.postinst b/debian/invirt-dev.postinst index f75d229..b873ea2 100755 --- a/debian/invirt-dev.postinst +++ b/debian/invirt-dev.postinst @@ -5,23 +5,25 @@ set -e case "$1" in configure) - if [ -z "$2" ]; then + if ! getent passwd repository >/dev/null 2>&1; then adduser --system repository + fi + if ! getent group repo >/dev/null 2>&1; then addgroup --system repo + fi - cat >>/etc/sudoers <>/etc/sudoers <