postrm is in mpd 0.16.5-1ubuntu4.
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 14 15 16 17 18 | #!/bin/sh -e
if [ "$1" = "purge" ]; then
update-rc.d mpd remove defaults >/dev/null
# clean up all statoverrides that belonged to mpd, so the
# user can cleanly remove the mpd system user if they want to
for i in $(dpkg-statoverride --list | awk '/^mpd / {print $4}'); do
if dpkg-statoverride --list --quiet "$i" >/dev/null; then
dpkg-statoverride --force --quiet --remove "$i"
fi
done
deluser --quiet --system mpd > /dev/null || true
rm -rf /var/log/mpd /var/run/mpd/pid /var/lib/mpd/state \
/var/lib/mpd/tag_cache > /dev/null 2>&1
fi
|