postrm is in dnscache-run 1:1.05-8ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/sh
set -e
test "$1" = 'purge' || exit 0
svc -x /etc/sv/dnscache 2>/dev/null || :
rm -rf /etc/sv/dnscache
rm -rf /var/lib/supervise/dnscache /var/lib/supervise/dnscache.log
for i in '@*' current config lock state; do
rm -f /var/log/dnscache/$i
done
rmdir /var/log/dnscache || :
! getent passwd Gdnscache >/dev/null || userdel -f Gdnscache || :
|