postrm is in proftpd-basic 1.3.5a-1build1.
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 | #!/bin/sh
set -e
if [ "$1" = "disappear" -o "$1" = "remove" ]
then
if [ -x /usr/sbin/update-inetd ]
then
update-inetd --disable ftp
fi
fi
if [ "$1" = "purge" ]
then
rm -rf /etc/proftpd
rm -rf /var/log/proftpd
rm -f /etc/logrotate.d/proftpd-basic
userdel --remove --force proftpd || true
userdel ftp || true
update-rc.d proftpd remove >/dev/null || exit $?
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
|