debian/postrm
changeset 26 767f79e69de1
parent 0 586472add385
child 31 bbcb8a3366b4
--- a/debian/postrm
+++ b/debian/postrm
@@ -24,10 +24,10 @@
 	rm -rf /var/lib/nobody/data;
 	rm -f /var/lib/nobody/.mcbotrc;
 	rm -f /var/lib/nobody/mcbot-*.log;
-	usermod -d /nonexistent -s /bin/bash nobody
     ;;
     
     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	update-rc.d -f mcbot remove &>/dev/null
 	usermod -d /nonexistent -s /bin/bash nobody
 	;;