32be33fe8b
PR: 31599
21 lines
369 B
Bash
21 lines
369 B
Bash
#!/bin/sh
|
|
# $FreeBSD: /tmp/pcvs/ports/www/apache22/Attic/pkg-deinstall,v 1.3 2001-10-29 20:05:37 ache Exp $
|
|
#
|
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
USER=www
|
|
|
|
if pw usershow "${USER}" 2>/dev/null 1>&2; then
|
|
if pw userdel ${USER}; then
|
|
echo "Delete user/group \"${USER}\"."
|
|
else
|
|
echo "Deleting user/group \"${USER}\" failed..."
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
exit 0
|