diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-11-17 14:56:19 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-11-17 14:56:19 +0100 |
commit | 3ca235c57aa1c0ccff1a8908c95fc81972c63dc7 (patch) | |
tree | 31548d2aeebd7b4d760d82079a7fce8551e01cb4 /postfix | |
parent | f41a98b7f4e0c85491aabdfcd649b771fa042161 (diff) |
Fix avoid misdetect postfix 2.1x as 2.1.x.
Diffstat (limited to 'postfix')
-rwxr-xr-x | postfix/postfix.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 2aca3e7..9ac1d0e 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -44,7 +44,7 @@ configdirs='/etc/local /etc/local-ORG /etc/local-REDPILL /etc/local-COMMON' confdir='/etc/postfix' postconf=/usr/sbin/postconf sp='[[:space:]]' -pf23="$($postconf -d mail_version | grep -Po '= \K([3-9]|2\.[3-9])(\.[0-9])*$')" +pf23="$($postconf -d mail_version | grep -Po '= \K([3-9]|2\.([3-9]|1\d+))(\.[0-9])*$')" if ! [ -d "$realmsdir" ]; then warn "Realms directory \"$realmsdir\" does not exist." fi |