postrm is in gdm 3.0.4-0ubuntu15.
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 | #!/bin/sh
set -e
if [ "$1" = "purge" ] ; then
rm -f /etc/default/gdm
if [ -d /etc/gdm ]; then
rmdir /etc/gdm/Init /etc/gdm/PreSession /etc/gdm/PostSession /etc/gdm/PostLogin /etc/gdm/Sessions /etc/gdm 2>/dev/null || true
fi
if [ -d /var/lib/gdm ]; then
rm -r /var/lib/gdm
fi
if [ -d /var/log/gdm ]; then
rm -r /var/log/gdm
fi
if getent passwd gdm >/dev/null; then
if [ -x /usr/sbin/deluser ]; then
deluser --system gdm || echo "Could not remove gdm user."
fi
fi
if getent group gdm >/dev/null; then
if [ -x /usr/sbin/delgroup ]; then
delgroup --system gdm || echo "Could not remove gdm group."
fi
fi
fi
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
dpkg-maintscript-helper rm_conffile /etc/X11/Xsession.d/60xdg_path-on-session 3.0.4-0ubuntu4 -- "$@"
fi
# 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
|