summaryrefslogtreecommitdiffstats
path: root/debian/postfix.preinst
diff options
context:
space:
mode:
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#