postrm is in freeradius 2.1.10+dfsg-3build2.
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
case "$1" in
remove)
;;
purge)
update-rc.d -f freeradius remove >/dev/null
# Remove dangling links from sites-enabled.
for link in /etc/freeradius/sites-enabled/*; do
if [ -L "$link" ] && [ ! -e "$link" ]; then
rm -f "$link"
fi
done
if [ -L /etc/freeradius/certs/server.pem ]; then
rm -f /etc/freeradius/certs/server.pem
fi
if [ -L /etc/freeradius/certs/server.key ]; then
rm -f /etc/freeradius/certs/server.key
fi
if [ -L /etc/freeradius/certs/ca.pem ]; then
rm -f /etc/freeradius/certs/ca.pem
fi
if [ -L /etc/freeradius/certs/random ]; then
rm -f /etc/freeradius/certs/random
fi
rm -f /etc/freeradius/certs/dh
rm -f /var/log/freeradius/radius.log* /var/log/freeradius/radwtmp*
;;
esac
exit 0
|