From 37943d075e242293cc171728930fd5a5d74783be Mon Sep 17 00:00:00 2001 From: Petr Menšík Date: Aug 14 2018 20:28:45 +0000 Subject: Do not print errors on configuration failure (#1595782) --- diff --git a/bind.spec b/bind.spec index 398d14d..61a51b2 100644 --- a/bind.spec +++ b/bind.spec @@ -954,7 +954,7 @@ else usermod -s /bin/false named fi # Checkconf will parse out comments - if /usr/sbin/named-checkconf -p /etc/named.conf | grep -q named.iscdlv.key + if /usr/sbin/named-checkconf -p /etc/named.conf 2>/dev/null | grep -q named.iscdlv.key then echo "Replacing obsolete named.iscdlv.key with named.root.key..." if cp -af /etc/named.conf /etc/named.conf.rpmbackup; then