diff options
Diffstat (limited to 'net-im/ejabberd/pkg-deinstall')
-rw-r--r-- | net-im/ejabberd/pkg-deinstall | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-im/ejabberd/pkg-deinstall b/net-im/ejabberd/pkg-deinstall new file mode 100644 index 000000000000..e5637444dc59 --- /dev/null +++ b/net-im/ejabberd/pkg-deinstall @@ -0,0 +1,22 @@ +#!/bin/sh + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +USER=ejabberd + +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 + +echo "If you wish to delete ejabberd data and log files, remove" +echo "'/var/spool/ejabberd' and '/var/log/ejabberd' directories." + +exit 0 |