aboutsummaryrefslogtreecommitdiffstats
path: root/databases/dbXML/pkg-deinstall
blob: 8c1e8a98b04542306c658d180fb73ccca2cc6f22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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