File: postfix.preinst

package info (click to toggle)
postfix 3.10.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 27,972 kB
  • sloc: ansic: 134,706; makefile: 17,984; sh: 6,971; perl: 2,796; python: 1,448; awk: 158
file content (16 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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#