amanda can not rely on deluser being available during postrm purge since
it's the adduser package is not essential.

The attached patch should fix the problem by safeguarding the calls to
deluser in postrm purge.

Someone should probably look closer at this though to make sure amanda
properly cleans up on purge.

Trivial patch attached.


-- 
Regards,
Andreas Henriksson
diff -ur amanda-2.5.1p1/debian/postrm amanda-2.5.1p1.fixed/debian/postrm
--- amanda-2.5.1p1/debian/postrm        2006-11-22 18:20:04.000000000 +0100
+++ amanda-2.5.1p1.fixed/debian/postrm  2006-11-22 18:16:24.000000000 +0100
@@ -27,8 +27,10 @@
 
        rm -f ~backup/.amandahosts
 
-       deluser backup disk
-       deluser backup tape
+       if which deluser >/dev/null 2>&1 ; then
+               deluser backup disk || true
+               deluser backup tape || true
+       fi
   ;;
   remove|upgrade|deconfigure)
   ;;

Reply via email to