Remove ancient version triggers

This commit is contained in:
Petr Menšík 2020-09-15 19:34:43 +02:00
parent aa8fce7381
commit 4158647a7a

View File

@ -874,24 +874,6 @@ fi
%systemd_postun_with_restart named-pkcs11.service %systemd_postun_with_restart named-pkcs11.service
%endif %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 # Fix permissions on existing device files on upgrade
%define chroot_fix_devices() \ %define chroot_fix_devices() \
if [ $1 -gt 1 ]; then \ if [ $1 -gt 1 ]; then \
@ -904,6 +886,17 @@ if [ $1 -gt 1 ]; then \
done \ done \
fi 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 %post chroot
%systemd_post named-chroot.service %systemd_post named-chroot.service
%chroot_fix_devices %{chroot_prefix} %chroot_fix_devices %{chroot_prefix}