summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-02-21 00:30:10 +0100
committerJonas Smedegaard <dr@jones.dk>2015-02-21 00:30:10 +0100
commit39d0dce90596bd0216b73c05371dab764cdfe418 (patch)
tree26ecc026a650aa5bf528f60ae96f4ddd0f3810c1 /postfix
parent764a6117925274383aee22debe885e29ea4acbb4 (diff)
Fix silence Postfix version detection.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 2aecd0d..57b2a28 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -47,7 +47,7 @@ pfver="$($postconf -d mail_version | cut -d= -f2 -s)"
echo "$pfver" | grep -qP '2\.([2-9]|1\d)(\.\d)?$' \
|| exit1 "ERROR: Bad postfix version - this script is known to work only for postfix 2.2 and later"
pf23=
-! echo "$pfver" | grep -P '2\.([3-9]|1\d)(\.\d)?$' || pf23=1
+! echo "$pfver" | grep -qP '2\.([3-9]|1\d)(\.\d)?$' || pf23=1
if ! [ -d "$realmsdir" ]; then
warn "Realms directory \"$realmsdir\" does not exist."
fi