preinst is in postgrey 1.36-5.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/bin/sh
# preinst script to kill postgrey daemons started by broken init.d
# script. See https://bugs.debian.org/670681 for details.
set -e
if [ "$1" != "abort-upgrade" ] && dpkg --compare-versions "$2" lt-nl "1.34-1.3~"; then
start-stop-daemon --stop --oknodo --user postgrey
fi
|