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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#! /bin/sh
set -e
RTVER=4
RT=request-tracker${RTVER}
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
. /usr/share/dbconfig-common/dpkg/postrm
dbc_go ${RT} $@
fi
#DEBHELPER#
# /var/cache is where we keep cached data
# Also remove log files for tidiness.
case "$1" in
"purge") rm -rf \
/var/cache/${RT}/ \
/var/log/${RT}/
rm -f \
/etc/${RT}/RT_SiteConfig.pm \
/etc/${RT}/RT_SiteConfig.pm.ucf-* \
/etc/${RT}/RT_SiteConfig.d/50-debconf.pm \
/etc/${RT}/RT_SiteConfig.d/50-debconf.pm.ucf-* \
/etc/${RT}/RT_SiteConfig.d/50-debconf.ucf-* \
/etc/${RT}/RT_SiteConfig.d/51-dbconfig-common.pm \
/etc/${RT}/RT_SiteConfig.d/51-dbconfig-common.pm.ucf-* \
/etc/${RT}/RT_SiteConfig.d/51-dbconfig-common.ucf-* \
/etc/cron.d/request-tracker4
if which ucf >/dev/null 2>&1
then
# managed by the postinst script
ucf --purge /etc/${RT}/RT_SiteConfig.d/50-debconf.pm
# managed by dbconfig-generate-include
ucf --purge /etc/${RT}/RT_SiteConfig.d/51-dbconfig-common.pm
ucf --purge /etc/${RT}/RT_SiteConfig.pm
ucf --purge /etc/cron.d/request-tracker4
fi
# clean up the ucf registry too
if which ucfr >/dev/null 2>&1
then
ucfr --purge ${RT} /etc/${RT}/RT_SiteConfig.d/50-debconf.pm
ucfr --purge ${RT} /etc/${RT}/RT_SiteConfig.d/51-dbconfig-common.pm
ucfr --purge ${RT} /etc/${RT}/RT_SiteConfig.pm
ucfr --purge ${RT} /etc/cron.d/request-tracker4
fi
;;
esac
|