> Why not just run the regular account deletion, and post an error > message if it fails? That what I do in a similar situation > (lyskom-server): > > # Remove 'lyskom' user > userexist=1 > getent passwd lyskom > /dev/null || userexist=0 > if test "$userexist" = "1"; then > # User did exist > echo 'Removing lyskom user.' > deluser lyskom || echo 'Could not remove lyskom user' > fi
Policy 7.2: "...Note, however, that the postrm cannot rely on any non-essential packages to be present during the purge phase...." Neither deluser nor getent is essential. > I don't think trying to mess with the things manually is a good idea. > It's not the end of the world if the account remains after purge if a > note has been posted about it, imho. Neither do I, but I can't find a good alternative that don't break 7.2. -- Magnus Ekdahl 0739-287181 [EMAIL PROTECTED] [EMAIL PROTECTED] public key available at http://oxtan.campus.luth.se/magnus.public ftp://ftp.se.debian.org/debian-non-US/pool/non-US/main/d/debian-keyring/ Key fingerprint = 18DE CB62 8A86 374E 824E 09ED 1987 4B18 1213 79F6 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

