postrm is in openvas-plugins-dfsg 1:20100705-4ubuntu1.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | #!/bin/sh
set -e
case "$1" in
purge)
if [ ! -e /usr/share/debconf/confmodule ] ; then
# No Debconf use a non-debconf mechanism for queries:
if [ -d /usr/lib/openvas/plugins ]; then
echo ""
echo "The /usr/lib/openvas/plugins directory still exists."
echo "This might be because you downloaded additional plugins into it"
echo "when using a previous OpenVAS version."
echo -n "Do you want to remove the full directory now? (yes/no) "
read ANSWER
case $ANSWER in
[yY]*) rm -rf /usr/lib/openvas/plugins ;;
esac
fi
if [ -d /var/lib/openvas/plugins ]; then
echo ""
echo "The /var/lib/openvas/plugins directory still exists."
echo "This might be because you downloaded additional plugins into it."
if [ -d /var/lib/openvas/plugins/.desc ]; then
echo "Or because the openvas-server package was not fully purged."
fi
echo ""
echo -n "Do you want to remove the full directory now? (yes/no) "
read ANSWER
case $ANSWER in
[yY]*) rm -rf /var/lib/openvas/plugins ;;
esac
fi
else
# Debconf is available, use it
. /usr/share/debconf/confmodule
test $DEBIAN_SCRIPT_DEBUG && set -v -x
if [ -d /usr/lib/openvas/plugins ]; then
db_input medium openvas-plugins-dfsg/remove-usr-lib || true
db_go
db_get openvas-plugins-dfsg/remove-usr-lib || true
[ "$RET" = "true" ] && rm -rf /usr/lib/openvas/plugins
fi
if [ -d /var/lib/openvas/plugins ]; then
db_input medium openvas-plugins-dfsg/remove-var-lib || true
db_go || true
db_get openvas-plugins-dfsg/remove-var-lib || true
[ "$RET" = "true" ] && rm -rf /var/lib/openvas/plugins
fi
fi
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
# 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
|