Status: Accepted
begin
true ;
case_7756438 := arg 1 ;
if test [ case_7756438; '='; 'purge' ]
then ([ [ '-d'; '/var/lib/dnshistory'; ']' ] &&
rm [ '-rf'; '/var/lib/dnshistory' ])
else ((((((test [ case_7756438; '='; 'remove' ] ||
test [ case_7756438; '='; 'upgrade' ]) ||
test [ case_7756438; '='; 'failed-upgrade' ]) ||
test [ case_7756438; '='; 'abort-install' ]) ||
test [ case_7756438; '='; 'abort-upgrade' ]) ||
test [ case_7756438; '='; 'disappear' ]) ||
begin
nooutput echo [ 'postrm called with unknown argument \`' arg 1 ''' ] ;
exit failure
end)
fi ;
exit success
end
#!/bin/sh
# postrm script for dnshistory
set -e
case "$1" in
purge)
[ -d /var/lib/dnshistory ] && rm -rf /var/lib/dnshistory
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0