summaryrefslogtreecommitdiffstats
path: root/debian/postfix.prerm
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postfix.prerm')
-rw-r--r--debian/postfix.prerm33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/postfix.prerm b/debian/postfix.prerm
new file mode 100644
index 0000000..282e653
--- /dev/null
+++ b/debian/postfix.prerm
@@ -0,0 +1,33 @@
+#!/bin/sh -e
+
+# Debian Postfix prerm
+# LaMont Jones <lamont@debian.org>
+
+. /usr/share/postfix/postinst.functions
+
+case "$1" in
+ upgrade)
+ ;;
+
+ deconfigure)
+ ;;
+
+ remove)
+ [ -x /usr/sbin/invoke-rc.d ] && \
+ INIT="invoke-rc.d postfix" || \
+ INIT="/etc/init.d/postfix"
+ ${INIT} stop
+ rm -rf /var/spool/postfix/lib
+ rm -rf /var/spool/postfix/etc
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+#DEBHELPER#
+exit 0