2006-04-26 12:28:53 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# Debian alternc prerm
|
|
|
|
# Benjamin Sonntag <benjamin@alternc.org>
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
remove)
|
2008-10-04 20:25:03 +00:00
|
|
|
# remove postfix from the sasl group (might not be user will though...)
|
|
|
|
deluser --quiet postfix sasl || true
|
|
|
|
|
2012-08-25 16:03:57 +00:00
|
|
|
#if [ -r "/etc/alternc/local.sh" ]
|
|
|
|
#then
|
|
|
|
# . /etc/alternc/local.sh
|
|
|
|
#else
|
|
|
|
# FQDN="`hostname --fqdn`"
|
|
|
|
#fi
|
2012-08-20 20:57:48 +00:00
|
|
|
|
2006-04-26 12:28:53 +00:00
|
|
|
FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`"
|
2012-08-25 16:03:57 +00:00
|
|
|
#rm -rf /var/alternc/bureau/locales || true
|
|
|
|
#rmdir -p /var/alternc/bureau 2> /dev/null || true
|
|
|
|
#rm -f /var/alternc/dns/bureau || true
|
|
|
|
#rm -f /var/alternc/dns/$FQDN_LETTER/$FQDN || true
|
|
|
|
#rmdir -p /var/alternc/html/a/admin 2> /dev/null || true
|
|
|
|
#rmdir -p /var/alternc/html/r/root 2> /dev/null || true
|
2006-04-26 12:28:53 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
upgrade)
|
|
|
|
;;
|
|
|
|
|
|
|
|
purge)
|
2012-08-25 16:03:57 +00:00
|
|
|
#find /var/alternc/bureau/locales -type f -name "alternc.mo" -exec rm {} \;
|
|
|
|
#find /var/alternc/bureau/locales -type f -name "alternc" -exec rm {} \;
|
|
|
|
#rm /var/alternc/bureau/class/local.php
|
|
|
|
#rm -f /var/alternc/apacheconf/bureau
|
|
|
|
#rm -f /var/alternc/apacheconf/$FQDN_LETTER/$FQDN
|
2006-04-26 12:28:53 +00:00
|
|
|
;;
|
|
|
|
|
|
|
|
failed-upgrade|abort-install|abort-upgrade|disappear)
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "postrm called with unknown argument '$1'" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
#DEBHELPER#
|