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