Do not print errors on configuration failure (#1595782)

This commit is contained in:
Petr Menšík 2018-08-14 22:28:45 +02:00
parent 95d8248d50
commit 37943d075e
1 changed files with 1 additions and 1 deletions

View File

@ -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