mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
7f019c034b
and adding a pkg-deinstall and another patch. Submitted by: maintainer
21 lines
372 B
Bash
21 lines
372 B
Bash
#!/bin/sh
|
|
# $FreeBSD: /tmp/pcvs/ports/databases/dbXML/pkg-deinstall,v 1.1 2002-03-30 11:48:53 znerd Exp $
|
|
#
|
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
USER=dbxml
|
|
|
|
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
|