Preserve symlinks to named.conf on iscdlv modification (#1786626)

This commit is contained in:
Petr Menšík 2020-01-03 20:26:39 +01:00
parent b4802c2e65
commit 4fa84d9ccc

View File

@ -64,7 +64,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind Name: bind
License: MPLv2.0 License: MPLv2.0
Version: 9.11.14 Version: 9.11.14
Release: 2%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist} Release: 3%{?PATCHVER:.%{PATCHVER}}%{?PREVER:.%{PREVER}}%{?dist}
Epoch: 32 Epoch: 32
Url: https://www.isc.org/downloads/bind/ Url: https://www.isc.org/downloads/bind/
# #
@ -1143,7 +1143,7 @@ else
if /usr/sbin/named-checkconf -p /etc/named.conf 2>/dev/null | 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 -Rf --preserve=all --remove-destination /etc/named.conf /etc/named.conf.rpmbackup; then
sed -e 's/named\.iscdlv\.key/named.root.key/' \ sed -e 's/named\.iscdlv\.key/named.root.key/' \
/etc/named.conf.rpmbackup > /etc/named.conf || \ /etc/named.conf.rpmbackup > /etc/named.conf || \
mv /etc/named.conf.rpmbackup /etc/named.conf mv /etc/named.conf.rpmbackup /etc/named.conf
@ -1615,6 +1615,9 @@ fi;
%changelog %changelog
* Fri Jan 03 2020 Petr Menšík <pemensik@redhat.com> - 32:9.11.14-3
- Preserve symlinks to named.conf on iscdlv modification (#1786626)
* Thu Dec 19 2019 Petr Menšík <pemensik@redhat.com> - 32:9.11.14-2 * Thu Dec 19 2019 Petr Menšík <pemensik@redhat.com> - 32:9.11.14-2
- Include more Thread Sanitizer detected changes (#1736762) - Include more Thread Sanitizer detected changes (#1736762)