#!/bin/sh
#
# This script does the following.
#
# Checks if the 'www' user exists. If it does, then it displays
# a message.
#
# $FreeBSD: ports/www/jakarta-tomcat/pkg-deinstall,v 1.2 2002/02/21 20:06:55 znerd Exp $
#

# Make sure we're called during the 'make deinstall' process
if [ "$2" != "POST-DEINSTALL" ]; then
    exit 0
fi

# If the user exists, then display a message
if pw usershow "www" 2>/dev/null 1>&2; then
	echo "To delete the www user permanently, use 'pw userdel www'"
fi

exit 0
