postrm is in kdm 4:4.8.5-0ubuntu0.4.
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 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #! /bin/sh -e
case "$1" in
purge)
rm -rf /var/log/kdm.log*
for DIR in /var/lib/kdm; do
if [ -d "$DIR" ]; then
rm -rf "$DIR"
fi
done
if [ -x "$(command -v deluser)" ]; then
deluser --system --quiet kdm > /dev/null || true
else
echo "deluser command was not found." >&2
echo "kdm user not deleted." >&2
fi
;;
abort-install|abort-upgrade)
# roll back displacement of default display manager file
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" ]; then
# FIXME - redo this part uses shell-lib.sh from xfree86
#observe "rolling back change of default X display manager"
mv "$DEFAULT_DISPLAY_MANAGER_FILE.dpkg-tmp" "$DEFAULT_DISPLAY_MANAGER_FILE"
fi
;;
remove|upgrade|failed-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section
exit 0
|