mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
6ac1f43ebb
PR: 31797 Submitted by: Petr Rehor <petr.dehor@decros.cz>
21 lines
384 B
Bash
21 lines
384 B
Bash
#!/bin/sh
|
|
# $FreeBSD: /tmp/pcvs/ports/russian/apache13-modssl/Attic/pkg-deinstall,v 1.1 2001-11-08 11:23:21 demon 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
|