Fix the problem when setroubleshoot is installed, or updated
This commit is contained in:
parent
d153a7e401
commit
9c9bdfe00c
@ -1,6 +1,6 @@
|
||||
Name: setroubleshoot
|
||||
Version: 3.3.24
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: SELinux Trouble Shooting Tool
|
||||
License: GPLv2+
|
||||
URL: https://pagure.io/setroubleshoot
|
||||
@ -84,19 +84,20 @@ install -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%post
|
||||
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
|
||||
%systemd_post auditd.service
|
||||
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart auditd.service
|
||||
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||
|
||||
%pre server
|
||||
getent passwd setroubleshoot >/dev/null || useradd -r -U -s /sbin/nologin -d %{_localstatedir}/lib/%{name} setroubleshoot
|
||||
|
||||
%post server
|
||||
%systemd_post auditd.service
|
||||
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||
|
||||
%postun server
|
||||
%systemd_postun_with_restart auditd.service
|
||||
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||
|
||||
%triggerun server -- %{name}-server < 3.2.24-4
|
||||
chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
||||
|
||||
@ -159,6 +160,9 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
||||
%{_mandir}/man1/seapplet.1.gz
|
||||
|
||||
%changelog
|
||||
* Mon Dec 27 2021 Hugel <gengqihu1@huawei.com> - 3.3.24-3
|
||||
- Fix the problem when setroubleshoot is installed, or updated.
|
||||
|
||||
* Tue Mar 16 2021 yixiangzhike <zhangxingliang3@huawei.com> - 3.3.24-2
|
||||
- add "Requires: python3-pydbus" for subpackage setroubleshoot-server
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user