mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
6ed6eabe57
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)
28 lines
505 B
Bash
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
|