From 4158647a7a9e40f095898fed51940b6a51f3a693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= Date: Tue, 15 Sep 2020 19:34:43 +0200 Subject: [PATCH] Remove ancient version triggers --- bind.spec | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/bind.spec b/bind.spec index 86f2b3b..4801ee8 100644 --- a/bind.spec +++ b/bind.spec @@ -874,24 +874,6 @@ fi %systemd_postun_with_restart named-pkcs11.service %endif -%triggerpostun -n bind -- bind <= 32:9.5.0-20.b1 -if [ "$1" -gt 0 ]; then - [ -e /etc/rndc.key ] && chown root:named /etc/rndc.key - [ -e /etc/rndc.key ] && chmod 0640 /etc/rndc.key -fi -:; - -%triggerun -- bind < 32:9.9.0-0.6.rc1 -/sbin/chkconfig --del named >/dev/null 2>&1 || : -/bin/systemctl try-restart named.service >/dev/null 2>&1 || : - -%ldconfig_scriptlets libs -%ldconfig_scriptlets libs-lite - -%if %{with PKCS11} -%ldconfig_scriptlets pkcs11-libs -%endif - # Fix permissions on existing device files on upgrade %define chroot_fix_devices() \ if [ $1 -gt 1 ]; then \ @@ -904,6 +886,17 @@ if [ $1 -gt 1 ]; then \ done \ fi +%triggerun -- bind < 32:9.9.0-0.6.rc1 +/sbin/chkconfig --del named >/dev/null 2>&1 || : +/bin/systemctl try-restart named.service >/dev/null 2>&1 || : + +%ldconfig_scriptlets libs +%ldconfig_scriptlets libs-lite + +%if %{with PKCS11} +%ldconfig_scriptlets pkcs11-libs +%endif + %post chroot %systemd_post named-chroot.service %chroot_fix_devices %{chroot_prefix}