at purgetime, if we don't have local.sh, don't fail though...

This commit is contained in:
Benjamin Sonntag 2012-08-20 20:57:48 +00:00
parent 3de91dde3a
commit 5cdcbbee1f
1 changed files with 7 additions and 3 deletions

10
debian/alternc.prerm vendored
View File

@ -8,10 +8,14 @@ remove)
# remove postfix from the sasl group (might not be user will though...)
deluser --quiet postfix sasl || true
. /etc/alternc/local.sh
if [ -r "/etc/alternc/local.sh" ]
then
. /etc/alternc/local.sh
else
FQDN="`hostname --fqdn`"
fi
FQDN_LETTER="`echo $FQDN | sed -e 's/.*\.\([^\.]\)[^\.]*\.[^\.]*$/\1/'`"
rm -rf /var/alternc/bureau/locales || true
rmdir -p /var/alternc/bureau 2> /dev/null || true
rm -f /var/alternc/dns/bureau || true