16 lines
430 B
Bash
16 lines
430 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# create spool dir with right SE Linux security context (#781776)
|
|
mkdir -Zp -m755 /var/spool/postfix
|
|
|
|
if [ upgrade = "$1" ] && dpkg --compare-versions "$2" lt-nl 3.9.1-7~
|
|
then # we used to copy the .proto files from /usr/share, now they're conffiles
|
|
for x in main master; do
|
|
if cmp -s /usr/share/postfix/$x.cf.dist /etc/postfix/$x.cf.proto
|
|
then rm -f /etc/postfix/$x.cf.proto
|
|
fi
|
|
done
|
|
fi
|
|
|
|
#DEBHELPER#
|