File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ if [ "$MAIL_SYSTEM" = "exim4" ]; then
268268 exim_version=$( exim4 --version | head -1 | awk ' {print $3}' | cut -f -2 -d .)
269269 # if Exim version > 4.95 or greater!
270270 if version_ge " $exim_version " " 4.95" ; then
271- if [ -z " $( grep -e ' condition = \ ${lookup{\ $local_part@\ $domain}lsearch{/etc/exim4/domains/\ ${lookup{\ $domain}dsearch{/etc/exim4/domains/}}/aliases}{false}{true}}' /etc/exim4/exim4.conf.template) " ] ; then
271+ if ! grep -q ' condition = ${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}{false}{true}}' /etc/exim4/exim4.conf.template; then
272272 for line in $( sed -n ' /redirect_router = dnslookup/=' /etc/exim4/exim4.conf.template) ; do
273273 testline=$(( line - 1 ))
274274 newline=$(( line + 1 ))
@@ -279,4 +279,5 @@ if [ "$MAIL_SYSTEM" = "exim4" ]; then
279279 done
280280 fi
281281 fi
282+
282283fi
You can’t perform that action at this time.
0 commit comments