aboutsummaryrefslogtreecommitdiffstats
path: root/games/pvpgn/pkg-deinstall
blob: da65a3cdab8f2beae9cbbabe0a665a629b1bbc92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

if [ "$2" != "POST-DEINSTALL" ]; then
    exit 0
fi

USER=bnetd
LOGDIR=/var/log/pvpgn
PIDDIR=/var/run/pvpgn

if pw usershow "${USER}" 2>/dev/null 1>&2; then
    echo "To delete PvPGN user permanently, use 'pw userdel ${USER}'"
fi

if pw groupshow "${USER}" 2>/dev/null 1>&2; then
    echo "To delete PvPGN group permanently, use 'pw groupdel ${USER}'"
fi

rm -Rf ${PIDDIR}

echo "If you wish to delete pvpgn data and log files, "
echo "remove '%%PVPGN_DIR%%' and '${LOGDIR}' directories."

exit 0