From f017f5eced576f0ac1842b7bfb17dfd6aabcbc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Sat, 4 Oct 2008 16:57:54 +0000 Subject: [PATCH] make a alternc-slave-specific prerm and preinst that doesn't touch /var/alternc --- .gitattributes | 5 +++-- debian/alternc-slave.prerm | 27 +++++++++++++++++++++++++++ debian/{preinst => alternc.preinst} | 0 debian/{prerm => alternc.prerm} | 0 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 debian/alternc-slave.prerm rename debian/{preinst => alternc.preinst} (100%) rename debian/{prerm => alternc.prerm} (100%) diff --git a/.gitattributes b/.gitattributes index 4e39fb90..5919c774 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/debian/alternc-slave.prerm b/debian/alternc-slave.prerm new file mode 100644 index 00000000..bf6ba5db --- /dev/null +++ b/debian/alternc-slave.prerm @@ -0,0 +1,27 @@ +#!/bin/sh -e + +# Debian alternc prerm +# Benjamin Sonntag + +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# diff --git a/debian/preinst b/debian/alternc.preinst similarity index 100% rename from debian/preinst rename to debian/alternc.preinst diff --git a/debian/prerm b/debian/alternc.prerm similarity index 100% rename from debian/prerm rename to debian/alternc.prerm