debian/postrm
changeset 31 bbcb8a3366b4
parent 26 767f79e69de1
child 32 89fb9c6611ca
equal deleted inserted replaced
30:eed9f710ba3b 31:bbcb8a3366b4
    19 # the debian-policy package
    19 # the debian-policy package
    20 
    20 
    21 
    21 
    22 case "$1" in
    22 case "$1" in
    23     purge)
    23     purge)
    24 	rm -rf /var/lib/nobody/data;
    24 	rm -rf /var/lib/mcbot/data;
    25 	rm -f /var/lib/nobody/.mcbotrc;
    25 	rm -f /var/lib/mcbot/.mcbotrc;
    26 	rm -f /var/lib/nobody/mcbot-*.log;
    26 	rm -f /var/lib/mcbot/mcbot-*.log;
    27     ;;
    27     ;;
    28     
    28     
    29     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    29     remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    30 	update-rc.d -f mcbot remove &>/dev/null
    30 	update-rc.d -f mcbot remove &>/dev/null
    31 	usermod -d /nonexistent -s /bin/bash nobody
    31 	userdel mcbot
    32 	;;
    32 	;;
    33 	
    33 	
    34     *)
    34     *)
    35         echo "postrm called with unknown argument \`$1'" >&2
    35         echo "postrm called with unknown argument \`$1'" >&2
    36         exit 1
    36         exit 1