From 5f7e4d6276d9f2b73b700af09f153b1ab186f1ad Mon Sep 17 00:00:00 2001 From: Andrey Arapov Date: Thu, 26 Dec 2019 09:54:27 +0000 Subject: [PATCH] keep quiet when resolv.conf is not there --- service/postfix/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/postfix/run b/service/postfix/run index d108d39..84fbe01 100755 --- a/service/postfix/run +++ b/service/postfix/run @@ -7,7 +7,7 @@ echo "${PWD##*/}: started." # without this workaround it uses 127.0.0.1:53 for some unknown (yet) reason... [ -d /var/spool/postfix/etc ] || mkdir -v /var/spool/postfix/etc -diff -q /var/spool/postfix/etc/resolv.conf /etc/resolv.conf +diff -q /var/spool/postfix/etc/resolv.conf /etc/resolv.conf 2>/dev/null [ $? -eq 0 ] || cp -v /etc/resolv.conf /var/spool/postfix/etc/resolv.conf # run postfix consistency check and exit if failed