Fix bug on writing master.cf file.

This commit is contained in:
Christoph 2017-06-01 19:23:58 +02:00
parent 0ac398c92a
commit 4a24217e27

View File

@ -487,7 +487,8 @@ while IFS='' read -r _line || [[ -n $_line ]] ; do
if $_found && ! echo "$_line" | grep -i -q -E "^\s*-o" 2> /dev/null ; then
echo " -o smtpd_milters=" >> "$tmp_master_file"
changed=true
_changed=true
_found=false
fi
if $_found && echo "$_line" | grep -i -q -E "^\s*-o\s+smtpd_milters=\s*" ; then