summaryrefslogtreecommitdiffstats
path: root/debian/postfix.preinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-12 16:11:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-12-12 16:11:51 +0000
commit33e3bf199e6848d71c73c581fa83fecbeeb1903b (patch)
tree769e40a0abea3265f329090c56b690d619a86a84 /debian/postfix.preinst
parentMerging upstream version 3.9.1. (diff)
downloadpostfix-33e3bf199e6848d71c73c581fa83fecbeeb1903b.tar.xz
postfix-33e3bf199e6848d71c73c581fa83fecbeeb1903b.zip
Merging debian version 3.9.1-4.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/postfix.preinst')
-rw-r--r--debian/postfix.preinst20
1 files changed, 1 insertions, 19 deletions
diff --git a/debian/postfix.preinst b/debian/postfix.preinst
index cd84edb..4381c80 100644
--- a/debian/postfix.preinst
+++ b/debian/postfix.preinst
@@ -14,27 +14,17 @@ else
DEBCONF=
fi
-(umask 022; mkdir -p /var/spool/postfix)
+mkdir -Zp -m755 /var/spool/postfix
case "$1" in
install)
rm -f /var/spool/postfix/restart /var/spool/postfix/reload
-
- if [ -L /etc/postfix/postfix-script ]; then
- rm -f /etc/postfix/postfix-script
- fi
-
;;
upgrade)
if [ -d /var/spool/postfix ] && [ -f /etc/postfix/main.cf ]; then
touch /var/spool/postfix/restart
fi
- export LANG=C # for the comparison of mail version...
-
- if [ -L /etc/postfix/postfix-script ]; then
- rm -f /etc/postfix/postfix-script
- fi
# If user has not modified master/main.proto, move aside so new version
# is installed (#991513)
@@ -64,12 +54,4 @@ case "$1" in
;;
esac
-if [ install = "$1" ] || [ upgrade = "$1" ]; then
- # cleanup after past mistakes.
- rm -f /usr/sbin/postconf.postfix
- dpkg-divert --package postfix-tls --remove \
- --divert /usr/sbin/postconf.postfix \
- /usr/sbin/postconf >/dev/null 2>/dev/null
-fi
-
#DEBHELPER#