diff --git a/SPECS/mrtg.spec b/SPECS/mrtg.spec index 01a81ed..5c5c9e0 100644 --- a/SPECS/mrtg.spec +++ b/SPECS/mrtg.spec @@ -6,7 +6,7 @@ Summary: Multi Router Traffic Grapher Name: mrtg Version: 2.17.4 -Release: 11%{?dist} +Release: 12%{?dist} URL: http://oss.oetiker.ch/mrtg/ Source0: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz Source1: http://oss.oetiker.ch/mrtg/pub/mrtg-%{version}.tar.gz.md5 @@ -105,9 +105,11 @@ sed -i 's;@@lib@@;%{_lib};g' "$RPM_BUILD_ROOT"%{_mandir}/man1/*.1 %post install -d -m 0755 -o root -g root /var/lock/mrtg -restorecon /var/lock/mrtg %systemd_post mrtg.service +%posttrans +/sbin/restorecon -R /var/run/tog-pegasus 2> /dev/null || :; + %preun if [ $1 -eq 0 ]; then # Package removal, not upgrade @@ -139,6 +141,10 @@ fi %{_unitdir}/mrtg.timer %changelog +* Tue Mar 24 2020 Vitezslav Crhonek - 2.17.4-12 +- Run restorecon in %%posttrans and hide stderr output of the command + Resolves: #1647753 + * Fri Jan 24 2014 Daniel Mach - 2.17.4-11 - Mass rebuild 2014-01-24