package greylistd tags 431516 + patch thanks Hello,
One way to fix this bug is to mask the calls to deluser/delgroup with tests that check for the existence of deluser/delgroup as outlined in this wiki page: http://wiki.debian.org/AccountHandlingInMaintainerScripts. If adduser is available it will remove the user/group otherwise a warning is printed that the user/group couldn't be deleted because the deluser/delgroup commands couldn't be found. A patch to fix this is attached. Grüße, Frank
diff -Naur greylistd-0.8.3.5.bak/debian/postrm greylistd-0.8.3.5/debian/postrm --- greylistd-0.8.3.5.bak/debian/postrm 2004-12-31 14:54:44.000000000 +0100 +++ greylistd-0.8.3.5/debian/postrm 2007-08-31 14:17:59.000000000 +0200 @@ -1,5 +1,5 @@ #! /bin/sh -e -# postinst script for greylistd +# postrm script for greylistd # # see: dh_installdeb(1) @@ -33,8 +33,18 @@ if id -u greylist >/dev/null 2>&1 then - deluser --system greylist - delgroup --system greylist >/dev/null 2>&1 || true + if [ -x "`which deluser 2>/dev/null`" ]; then + deluser --system greylist + else + echo >&2 "Not removing \`greylist' system account" \ + "because deluser command was not found." + fi + if [ -x "`which delgroup 2>/dev/null`" ]; then + delgroup --system greylist >/dev/null 2>&1 || true + else + echo >&2 "Not removing \`greylist' system group" \ + "because delgroup command was not found." + fi fi ;;
signature.asc
Description: This is a digitally signed message part.