Fix (another) bug on writing postfix master.cf.

This commit is contained in:
Christoph 2017-06-01 23:54:09 +02:00
parent 4a24217e27
commit d20f401ebf

View File

@ -495,7 +495,7 @@ while IFS='' read -r _line || [[ -n $_line ]] ; do
_found=false
fi
if echo "$_line" | grep -i -q -E "^\s*127.0.0.1:10025\s+inet\s+" 2> /dev/null ; then
if echo "$_line" | grep -i -q -E "^\s*(127.0.0.1|localhost):10025\s+inet\s+" 2> /dev/null ; then
_found=true
fi