summaryrefslogtreecommitdiffstats
path: root/debian/exim4-config.postrm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:44:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:44:08 +0000
commit933bbaf3ed7bd659a5c044745aea763815928598 (patch)
tree6fe3906ff9f7121999800da3683c206d128b7d39 /debian/exim4-config.postrm
parentAdding upstream version 4.94.2. (diff)
downloadexim4-933bbaf3ed7bd659a5c044745aea763815928598.tar.xz
exim4-933bbaf3ed7bd659a5c044745aea763815928598.zip
Adding debian version 4.94.2-7+deb11u2.debian/4.94.2-7+deb11u2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/exim4-config.postrm30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/exim4-config.postrm b/debian/exim4-config.postrm
new file mode 100644
index 0000000..dffd4c4
--- /dev/null
+++ b/debian/exim4-config.postrm
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+set -e
+if [ -n "$EX4DEBUG" ]; then
+ echo "now debugging $0 $@"
+ set -x
+fi
+
+case "$1" in
+ purge)
+ dpkg-statoverride --remove /etc/exim4/passwd.client || true
+ rm -f /etc/exim4/update-exim4.conf.conf
+ rm -f /var/lib/exim4/config.autogenerated
+ rm -f /etc/exim4/conf.d/main/03_exim4-config_neverusers \
+ /etc/exim4/conf.d/rewrite/30_exim4-config_email-addresses \
+ /etc/exim4/conf.d/rewrite/35_exim4-config_masquerade
+
+ # remove empty directories in /etc/exim4
+ rmdir /etc/exim4/conf.d/auth /etc/exim4/conf.d/acl \
+ /etc/exim4/conf.d/transport /etc/exim4/conf.d/main \
+ /etc/exim4/conf.d/retry /etc/exim4/conf.d/rewrite \
+ /etc/exim4/conf.d/router /etc/exim4/conf.d \
+ /etc/exim4 /var/lib/exim4 2> /dev/null || true
+ rm -f /etc/default/exim4
+ # remove user
+ #deluser --quiet Debian-exim > /dev/null || true
+ ;;
+esac
+
+#DEBHELPER#