From 3ca235c57aa1c0ccff1a8908c95fc81972c63dc7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 17 Nov 2016 14:56:19 +0100 Subject: Fix avoid misdetect postfix 2.1x as 2.1.x. --- postfix/postfix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3