postrm is in openvas-server 2.0.3-6.
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 | #!/bin/sh
set -e
if [ "$1" = "purge" ]; then
for DIR in /etc/openvas /var/log/openvas /var/lib/openvas \
/usr/lib/openvas/plugins/.desc/ /var/cache/openvas/
do
if [ -d $DIR ] ; then
find $DIR -type f -o -type l | xargs rm -f
fi
done
# Remove certificates
OPENVASPRIV="/var/lib/openvas/private/CA"
OPENVASPUB="/var/lib/openvas/CA"
CAKEY=$OPENVASPRIV/cakey.pem
CACERT=$OPENVASPUB/cacert.pem
#
SRVKEY=$OPENVASPRIV/serverkey.pem
SRVCERT=$OPENVASPUB/servercert.pem
for file in $CAKEY $CACERT $SRVKEY $SRVCERT; do
[ -e "$file" ] && rm -f $file
done
update-rc.d openvas-server remove >/dev/null
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
|