Fix the problem when setroubleshoot is installed, or updated
This commit is contained in:
parent
196e610d27
commit
53f6be6a10
@ -1,6 +1,6 @@
|
|||||||
Name: setroubleshoot
|
Name: setroubleshoot
|
||||||
Version: 3.3.24
|
Version: 3.3.24
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: SELinux Trouble Shooting Tool
|
Summary: SELinux Trouble Shooting Tool
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://pagure.io/setroubleshoot
|
URL: https://pagure.io/setroubleshoot
|
||||||
@ -84,19 +84,20 @@ install -m644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
dbus-send --system /com/redhat/setroubleshootd com.redhat.SEtroubleshootdIface.restart string:'rpm install' >/dev/null 2>&1 || :
|
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
|
%postun
|
||||||
%systemd_postun_with_restart auditd.service
|
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%pre server
|
%pre server
|
||||||
getent passwd setroubleshoot >/dev/null || useradd -r -U -s /sbin/nologin -d %{_localstatedir}/lib/%{name} setroubleshoot
|
getent passwd setroubleshoot >/dev/null || useradd -r -U -s /sbin/nologin -d %{_localstatedir}/lib/%{name} setroubleshoot
|
||||||
|
|
||||||
%post server
|
%post server
|
||||||
%systemd_post auditd.service
|
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%postun server
|
%postun server
|
||||||
%systemd_postun_with_restart auditd.service
|
/sbin/service auditd reload >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%triggerun server -- %{name}-server < 3.2.24-4
|
%triggerun server -- %{name}-server < 3.2.24-4
|
||||||
chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
||||||
|
|
||||||
@ -159,6 +160,9 @@ chown -R setroubleshoot:setroubleshoot %{_localstatedir}/lib/%{name}
|
|||||||
%{_mandir}/man1/seapplet.1.gz
|
%{_mandir}/man1/seapplet.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 27 2021 Hugel <gengqihu1@huawei.com> - 3.3.24-4
|
||||||
|
- Fix the problem when setroubleshoot is installed, or updated.
|
||||||
|
|
||||||
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.3.24-3
|
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.3.24-3
|
||||||
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
- DESC: delete -S git from %autosetup, and delete BuildRequires git
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user