make a alternc-slave-specific prerm and preinst that doesn't touch /var/alternc

This commit is contained in:
Antoine Beaupré 2008-10-04 16:57:54 +00:00
parent f9804848d2
commit f017f5eced
4 changed files with 30 additions and 2 deletions

5
.gitattributes vendored
View File

@ -251,12 +251,15 @@ debian/alternc-slave.links -text
debian/alternc-slave.logrotate -text
debian/alternc-slave.postinst -text
debian/alternc-slave.postrm -text
debian/alternc-slave.prerm -text
debian/alternc.cron.d -text
debian/alternc.dirs -text
debian/alternc.links -text
debian/alternc.logrotate -text
debian/alternc.postinst -text
debian/alternc.postrm -text
debian/alternc.preinst -text
debian/alternc.prerm -text
debian/changelog -text
debian/compat -text
debian/config -text
@ -267,8 +270,6 @@ debian/lintian-override -text
debian/po/POTFILES.in -text
debian/po/fr.po -text
debian/po/templates.pot -text
debian/preinst -text
debian/prerm -text
debian/rules -text
debian/templates -text
etc/alternc/apache-ssl.conf -text

27
debian/alternc-slave.prerm vendored Normal file
View File

@ -0,0 +1,27 @@
#!/bin/sh -e
# Debian alternc prerm
# Benjamin Sonntag <benjamin@alternc.org>
case "$1" in
remove)
# remove postfix from the sasl group (might not be user will though...)
deluser --quiet postfix sasl || true
;;
upgrade)
;;
purge)
;;
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument '$1'" >&2
exit 1
;;
esac
#DEBHELPER#