Fix zabbix-proxy SELinux module loading and unloading on install

tags/zabbix-3.4.6-2
Daniel Berteaud 7 years ago
parent e288863df6
commit 4c1aa729a3
  1. 6
      zabbix.spec

@ -543,9 +543,6 @@ fi
%endif
/usr/sbin/semodule -s targeted -i \
%{_datadir}/selinux/packages/zabbix/zabbix-proxy.pp.bz
if [ $1 -eq 0 ] ; then
/usr/sbin/semodule -s targeted -r zabbix-proxy &> /dev/null || :
fi
%preun proxy
%if 0%{?rhel} >= 7
@ -561,6 +558,9 @@ fi
%if 0%{?rhel} >= 7
%systemd_postun
%endif
if [ $1 -eq 0 ] ; then
/usr/sbin/semodule -s targeted -r zabbix-proxy &> /dev/null || :
fi
%files
%defattr(-,root,root,-)

Loading…
Cancel
Save