41 lines
989 B
Plaintext
41 lines
989 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
# Debian alternc prerm
|
||
|
# Benjamin Sonntag <benjamin@alternc.org>
|
||
|
|
||
|
case "$1" in
|
||
|
remove)
|
||
|
. /etc/alternc/local.sh
|
||
|
|
||
|
FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`"
|
||
|
|
||
|
rm -rf /var/alternc/bureau/locales
|
||
|
rmdir -p /var/alternc/bureau 2> /dev/null || true
|
||
|
rm -f /var/alternc/dns/bureau
|
||
|
rm -f /var/alternc/dns/$FQDN_LETTER/$FQDN
|
||
|
rmdir -p /var/alternc/html/a/admin 2> /dev/null || true
|
||
|
rmdir -p /var/alternc/html/r/root 2> /dev/null || true
|
||
|
;;
|
||
|
|
||
|
upgrade)
|
||
|
;;
|
||
|
|
||
|
purge)
|
||
|
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
|
||
|
;;
|
||
|
|
||
|
failed-upgrade|abort-install|abort-upgrade|disappear)
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "postrm called with unknown argument '$1'" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
#DEBHELPER#
|