Remove ancient version triggers
This commit is contained in:
parent
165b833b3d
commit
d4dab07e86
27
bind.spec
27
bind.spec
@ -1196,12 +1196,17 @@ 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
|
# Fix permissions on existing device files on upgrade
|
||||||
if [ "$1" -gt 0 ]; then
|
%define chroot_fix_devices() \
|
||||||
[ -e /etc/rndc.key ] && chown root:named /etc/rndc.key
|
if [ $1 -gt 1 ]; then \
|
||||||
[ -e /etc/rndc.key ] && chmod 0640 /etc/rndc.key
|
for DEV in "%{1}/dev"/{null,random,zero}; do \
|
||||||
|
if [ -e "$DEV" -a "$(/bin/stat --printf="%G %a" "$DEV")" = "root 644" ]; \
|
||||||
|
then \
|
||||||
|
/bin/chmod 0664 "$DEV" \
|
||||||
|
/bin/chgrp named "$DEV" \
|
||||||
|
fi \
|
||||||
|
done \
|
||||||
fi
|
fi
|
||||||
:;
|
|
||||||
|
|
||||||
%triggerun -- bind < 32:9.9.0-0.6.rc1
|
%triggerun -- bind < 32:9.9.0-0.6.rc1
|
||||||
/sbin/chkconfig --del named >/dev/null 2>&1 || :
|
/sbin/chkconfig --del named >/dev/null 2>&1 || :
|
||||||
@ -1222,18 +1227,6 @@ fi
|
|||||||
%end
|
%end
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Fix permissions on existing device files on upgrade
|
|
||||||
%define chroot_fix_devices() \
|
|
||||||
if [ $1 -gt 1 ]; then \
|
|
||||||
for DEV in "%{1}/dev"/{null,random,zero}; do \
|
|
||||||
if [ -e "$DEV" -a "$(/bin/stat --printf="%G %a" "$DEV")" = "root 644" ]; \
|
|
||||||
then \
|
|
||||||
/bin/chmod 0664 "$DEV" \
|
|
||||||
/bin/chgrp named "$DEV" \
|
|
||||||
fi \
|
|
||||||
done \
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post chroot
|
%post chroot
|
||||||
%systemd_post named-chroot.service
|
%systemd_post named-chroot.service
|
||||||
%chroot_fix_devices %{chroot_prefix}
|
%chroot_fix_devices %{chroot_prefix}
|
||||||
|
Loading…
Reference in New Issue
Block a user