File: postgrey.config

package info (click to toggle)
postgrey 1.36-5.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 620 kB
  • sloc: perl: 1,162; sh: 243; makefile: 17
file content (18 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh
# debconf notice

set -e

. /usr/share/debconf/confmodule

if [ "$1" != "configure" ]; then
    exit 0;
fi

if dpkg --compare-versions "$2" lt-nl "1.32-1" && \
    [ -e /etc/postfix/main.cf ] && \
    grep -q 'inet:127.0.0.1:60000' /etc/postfix/main.cf; then

    db_input critical postgrey/1.32-3_changeport || true
    db_go || true
fi