freebsd-ports/mail/spamd/files/pkg-deinstall.in
Martin Wilke 4e3dcb24af - Update to 4.1.2
PR:		113293
Submitted by:	Alex Samorukov <samm@os2.kiev.ua> (maintainer)
2007-06-06 16:38:53 +00:00

21 lines
510 B
Bash

#!/bin/sh
#
#
SPAMDDIR=%%SPAMDDIR%%
SPAMDUSER=%%SPAMDUSER%%
SPAMDGROUP=%%SPAMDGROUP%%
if [ "$2" = "POST-DEINSTALL" ]; then
if /usr/sbin/pw group show "${SPAMDGROUP}" 2>&1 >/dev/null; then
echo "You should manually remove the \"${SPAMDGROUP}\" group."
fi
if /usr/sbin/pw user show "${SPAMDUSER}" 2>&1 >/dev/null; then
echo "You should manually remove the \"${SPAMDUSER}\" user."
fi
if [ -e "${SPAMDDIR}" ]; then
echo "You should manually remove the \"${SPAMDDIR}\" directory."
fi
fi