From 9726687539ef1eac52a2b832d4d02c90d11c9cde Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Thu, 14 Aug 2014 17:28:06 +0200 Subject: [PATCH] Unify SUSE distribution checks in spec file refs #6919 --- icinga2.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icinga2.spec b/icinga2.spec index aaa1a326a..366985b2a 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -274,7 +274,7 @@ exit 0 # all restart/feature actions belong to icinga2-bin %post bin # suse -%if 0%{?suse_version} +%if "%{_vendor}" == "suse" %if 0%{?suse_version} >= 1310 %set_permissions /var/run/icinga2/cmd %endif @@ -312,7 +312,7 @@ exit 0 %postun bin # suse -%if 0%{?suse_version} +%if "%{_vendor}" == "suse" %if 0%{?using_systemd} %service_del_postun %{name}.service %else @@ -343,7 +343,7 @@ exit 0 %preun bin # suse -%if 0%{?suse_version} +%if "%{_vendor}" == "suse" %if 0%{?use_systemd} %service_del_preun %{name}.service