Do not print errors on configuration failure (#1595782)
This commit is contained in:
parent
95d8248d50
commit
37943d075e
@ -954,7 +954,7 @@ else
|
|||||||
usermod -s /bin/false named
|
usermod -s /bin/false named
|
||||||
fi
|
fi
|
||||||
# Checkconf will parse out comments
|
# 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
|
then
|
||||||
echo "Replacing obsolete named.iscdlv.key with named.root.key..."
|
echo "Replacing obsolete named.iscdlv.key with named.root.key..."
|
||||||
if cp -af /etc/named.conf /etc/named.conf.rpmbackup; then
|
if cp -af /etc/named.conf /etc/named.conf.rpmbackup; then
|
||||||
|
Loading…
Reference in New Issue
Block a user