diff options
Diffstat (limited to 'security/amavisd-new/files/pkg-deinstall.in')
-rw-r--r-- | security/amavisd-new/files/pkg-deinstall.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/security/amavisd-new/files/pkg-deinstall.in b/security/amavisd-new/files/pkg-deinstall.in new file mode 100644 index 00000000000..8c3c4d8fde4 --- /dev/null +++ b/security/amavisd-new/files/pkg-deinstall.in @@ -0,0 +1,28 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +USER=%%AMAVISUSER%% +GROUP=%%AMAVISGROUP%% +DIR=%%AMAVISDIR%% +QUARANTINE=%%AMAVISQUARANTINE%% + +if [ "$2" = "POST-DEINSTALL" ]; then + + if /usr/sbin/pw group show "${GROUP}" 2>&1 >/dev/null; then + echo "You should manually remove the \"${GROUP}\" group." + fi + + if /usr/sbin/pw user show "${USER}" 2>&1 >/dev/null; then + echo "You should manually remove the \"${USER}\" user." + fi + + if [ -e ${DIR} ]; then + echo "You should manually remove the \"${DIR}\" directory." + fi + + if [ -e ${QUARANTINE} ]; then + echo "You should manually remove the \"${QUARANTINE}\" directory." + fi +fi |