mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
db5f4533d8
Blizzard Battle.net server. It currently supports all Battle.net games, such as StarCraft, Diablo II, and Warcraft III, and gives you the power to run your own server, manage your own users, run your own tournaments, etc. PR: ports/76445 Submitted by: Max E. Kuznecov <mek@mek.uz.ua>
25 lines
502 B
Bash
25 lines
502 B
Bash
#!/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
|