#! /bin/sh
# $FreeBSD: ports/www/openacs/files/pkg-deinstall.in,v 1.4 2007/08/02 13:10:48 mm Exp $

if [ "$2" != "POST-DEINSTALL" ]; then
	exit 0
fi

OPENACS_USER=openacs
OPENACS_GROUP=www
OPENACSBASE=/usr/local/openacs

PW=/usr/sbin/pw

if ${PW} usershow "${OPENACS_USER}" 2>/dev/null 1>&2; then
	echo "To delete ${OPENACS_USER} user permanently, use '${PW} userdel \"${OPENACS_USER}\"'"
fi
if ${PW} usershow "${OPENACS_GROUP}" 2>/dev/null 1>&2; then
	echo "To delete ${OPENACS_GROUP} group permanently, use '${PW} groupdel \"${OPENACS_GROUP}\"'"
fi
if test -d "${OPENACSBASE}"; then
	echo "You may need to remove ${OPENACSBASE} manually."
fi
exit 0
