Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (33 sloc) 852 Bytes
#! /bin/sh
# postrm script for ejabberd
#
# see: dh_installdeb(1)
set -e
CONFIG_TARGET=/etc/ejabberd/ejabberd.cfg
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
case "$1" in
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
purge)
if which ucf >/dev/null ; then
ucf --purge $CONFIG_TARGET
fi
rm -f $CONFIG_TARGET
rm -f /etc/ejabberd/ejabberd.pem
rm -Rf /var/log/ejabberd /var/lib/ejabberd
rm -f /etc/default/ejabberd
if which deluser >/dev/null ; then
deluser ejabberd 2>/dev/null || true
delgroup ejabberd 2>/dev/null || true
fi
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#