From 9aa8092ed2bb9a5a045caacd0c95b52c001bc1208bc5602ecefec76f372e0640 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Thu, 20 Sep 2018 13:06:28 +0000 Subject: [PATCH] - 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 --- haproxy.changes | 5 +++++ haproxy.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/haproxy.changes b/haproxy.changes index 7ff7056..093b100 100644 --- a/haproxy.changes +++ b/haproxy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 20 13:03:31 UTC 2018 - Marcus Rueckert + +- also fix the systemd case for the apparmor_reload change + ------------------------------------------------------------------- Thu Sep 20 12:50:35 UTC 2018 - Marcus Rueckert diff --git a/haproxy.spec b/haproxy.spec index f19dc86..d775eab 100644 --- a/haproxy.spec +++ b/haproxy.spec @@ -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