2002-02-04 14:40:56 +01:00
|
|
|
#!/bin/sh
|
2002-02-21 21:06:55 +01:00
|
|
|
#
|
|
|
|
# This script does the following.
|
|
|
|
#
|
|
|
|
# Checks if the 'www' user exists. If it does, then it displays
|
|
|
|
# a message.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Make sure we're called during the 'make deinstall' process
|
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
|
|
exit 0
|
2002-02-04 14:40:56 +01:00
|
|
|
fi
|
2002-02-21 21:06:55 +01:00
|
|
|
|
|
|
|
# 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
|