blob: b00350d14ca802042fcd3bb4219ea7472e67bfdd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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
|