From: Tim Hardeck Date: Thu, 14 Aug 2014 15:28:06 +0000 (+0200) Subject: Unify SUSE distribution checks in spec file X-Git-Tag: v2.1.0~54^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9726687539ef1eac52a2b832d4d02c90d11c9cde;p=icinga2 Unify SUSE distribution checks in spec file refs #6919 --- 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