- restart apparmor to get changes in the apparmor profiles updated
- require apparmor-abstractions OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-zypper?expand=0&rev=27
This commit is contained in:
committed by
Git OBS Bridge
parent
0fde1f5228
commit
8a5a2f4ba4
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 13 19:22:47 UTC 2016 - lars@linux-schulserver.de
|
||||
|
||||
- restart apparmor to get changes in the apparmor profiles updated
|
||||
- require apparmor-abstractions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 12 18:58:11 UTC 2016 - lars@linux-schulserver.de
|
||||
|
||||
|
||||
@@ -16,6 +16,12 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} >= 1230
|
||||
%bcond_without systemd
|
||||
%else
|
||||
%bcond_with systemd
|
||||
%endif
|
||||
|
||||
Name: monitoring-plugins-zypper
|
||||
Summary: Check for software updates via zypper
|
||||
License: BSD-3-Clause
|
||||
@@ -35,6 +41,7 @@ Requires: rpm
|
||||
# nagios can execute the script with embedded perl
|
||||
Recommends: perl
|
||||
Recommends: apparmor-parser
|
||||
Requires: apparmor-abstractions
|
||||
%endif
|
||||
Requires: zypper
|
||||
BuildArch: noarch
|
||||
@@ -93,6 +100,13 @@ fi
|
||||
%clean
|
||||
rm -rf %buildroot
|
||||
|
||||
%post
|
||||
%if %{with systemd}
|
||||
%{_bindir}/systemctl try-restart apparmor
|
||||
%else
|
||||
%restart_on_update apparmor
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
# avoid build dependecy of nagios - own the dirs
|
||||
|
||||
Reference in New Issue
Block a user