Improving the %post scriptlet in frr-selinux

This commit is contained in:
Michal Ruprich
2025-07-29 11:44:30 +02:00
parent e8b6134e76
commit 825d1088db

View File

@@ -9,7 +9,7 @@
Name: frr
Version: 10.4.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Routing daemon
License: GPL-2.0-or-later AND ISC AND LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND (GPL-2.0-or-later OR ISC) AND MIT
URL: http://www.frrouting.org
@@ -229,8 +229,8 @@ fi
%selinux_relabel_post -s %{selinuxtype}
#/var/tmp and /var/run need to be relabeled as well if FRR is running before upgrade
if [ $1 == 2 ]; then
%{_sbindir}/restorecon -R /var/tmp/frr &> /dev/null
%{_sbindir}/restorecon -R /var/run/frr &> /dev/null
%{_sbindir}/restorecon -R /var/tmp/frr &> /dev/null || :
%{_sbindir}/restorecon -R /var/run/frr &> /dev/null || :
fi
%postun selinux
@@ -283,6 +283,9 @@ rm tests/lib/*grpc*
%endif
%changelog
* Tue Jul 29 2025 Michal Ruprich <mruprich@redhat.com> - 10.4.0-2
- Improving the %post scriptlet in frr-selinux
* Mon Jul 28 2025 Michal Ruprich <mruprich@redhat.com> - 10.4.0-1
- New version 10.4.0