- use systemctl for try-restart call for apparmor in postinstall
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-zypper?expand=0&rev=41
This commit is contained in:
committed by
Git OBS Bridge
parent
233c241157
commit
78ea0dfc15
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 25 18:02:13 CEST 2017 - ro@suse.de
|
||||
|
||||
- use systemctl for try-restart call for apparmor in postinstall
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 30 07:29:55 UTC 2017 - lars@linux-schulserver.de
|
||||
|
||||
|
||||
@@ -112,7 +112,11 @@ fi
|
||||
rm -rf %buildroot
|
||||
|
||||
%post
|
||||
%if %{with systemd}
|
||||
systemctl try-restart apparmor.service
|
||||
%else
|
||||
%{_sysconfdir}/init.d/boot.apparmor try-restart || echo "restarting boot.apparmor failed" >&2
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
Reference in New Issue
Block a user