1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/net-im/ejabberd/pkg-deinstall
Vsevolod Stakhov 6ed6eabe57 Update to 0.9.8 [1]
Fix default installation paths to preserve erlang cookies [2]

Submitted by:	Denis Shaposhnikov <dsh@vlink.ru> [1]
		Alexander Timoshenko <gonzo@univ.kiev.ua> [2]
PR:		84383 [2]
Approved by:	perky (mentor)
2005-08-28 15:51:48 +00:00

28 lines
505 B
Bash

#!/bin/sh
if [ x"$2" != x"POST-DEINSTALL" ]; then
exit 0
fi
USER=ejabberd
echo ""
if pw usershow "${USER}" 2>/dev/null 1>&2; then
echo "To delete ejabberd user permanently, use 'pw userdel ${USER}'."
fi
if pw groupshow "${USER}" 2>/dev/null 1>&2; then
echo "To delete ejabberd group permanently, use 'pw groupdel ${USER}'."
fi
rm -Rf /var/run/ejabberd
cat <<EOF
If you wish to delete ejabberd data and log files, remove
"/var/spool/ejabberd" and "/var/log/ejabberd" directories.
EOF
exit 0