SHA256
1
0
forked from pool/haproxy

- also fix the systemd case for the apparmor_reload change

OBS-URL: https://build.opensuse.org/package/show/server:http/haproxy?expand=0&rev=175
This commit is contained in:
Marcus Rückert 2018-09-20 13:06:28 +00:00 committed by Git OBS Bridge
parent 17536a11cb
commit 9aa8092ed2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Sep 20 13:03:31 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>
- also fix the systemd case for the apparmor_reload change
-------------------------------------------------------------------
Thu Sep 20 12:50:35 UTC 2018 - Marcus Rueckert <mrueckert@suse.de>

View File

@ -199,7 +199,7 @@ getent passwd %{pkg_name} >/dev/null || \
%service_add_pre %{pkg_name}.service
%post
%if %{with apparmor} && (0%{?suse_version} >= 1315)
%if %{with apparmor} && %{with apparmor_reload}
%apparmor_reload /etc/apparmor.d/usr.sbin.haproxy
%endif
%service_add_post %{pkg_name}.service