blob: e5637444dc5947eaa6c017e110b9bd9ac7f46a6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|