keep quiet when resolv.conf is not there
This commit is contained in:
parent
402a5856c6
commit
5f7e4d6276
@ -7,7 +7,7 @@ echo "${PWD##*/}: started."
|
|||||||
# without this workaround it uses 127.0.0.1:53 for some unknown (yet) reason...
|
# 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
|
[ -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
|
[ $? -eq 0 ] || cp -v /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
|
||||||
|
|
||||||
# run postfix consistency check and exit if failed
|
# run postfix consistency check and exit if failed
|
||||||
|
Loading…
Reference in New Issue
Block a user