Op wo 15 nov 2006 om 09:43:20 +0100 schreef Joost van Baal: > Op di 14 nov 2006 om 11:02:24 +0100 schreef Lucas Nussbaum: > > Package: systraq > > Version: 0.0.20050213-7 > > Severity: serious > > Usertags: grid5000 > > > > Hi, > > > > During a piuparts run over all the packages in etch, I ran into a > > problem with your package: > > Removing systraq ... > > Purging configuration files for systraq ... > > /var/lib/dpkg/info/systraq.postrm: line 24: deluser: command not found > > dpkg: error processing systraq (--purge): > > subprocess post-removal script returned error exit status 127 > > > > adduser is not essential, you must depend on it. > > Here's a patch: > > ----------------------- > > --- postrm.orig 2006-11-15 09:00:19.771850181 +0100 > +++ postrm 2006-11-15 09:39:07.394806082 +0100 > @@ -21,10 +21,18 @@ > case "$1" in > purge) > if getent passwd debian-systraq > /dev/null 2>&1; then > - deluser --remove-all-files debian-systraq > + if [ -x /usr/sbin/deluser ]; then > + deluser --remove-all-files debian-systraq > + else > + echo "Can't remove user debian-systraq" > + fi > fi > if getent group debian-systraq > /dev/null 2>&1; then > - delgroup --only-if-empty debian-systraq > + if [ -x /usr/sbin/delgroup ]; then > + delgroup --only-if-empty debian-systraq > + else > + echo "Can't remove group debian-systraq" > + fi > fi > rm -rf /etc/systraq > > ----------------------- > > Laurent: do you want me to commit that?
Nah, better use the example on http://wiki.debian.org/AccountHandlingInMaintainerScripts , that's a more robust implementation. Bye, Joost
signature.asc
Description: Digital signature