From 6c1ec9e8c09493592e4a0f05b04f18979a5ee3b1 Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Mon, 1 Dec 2014 20:13:05 +0100 Subject: [PATCH] Move set_permission statement from common to bin /var/run/icinga2/cmd was moved from common to bin in Icinga 2.2.0 but the set_permission statement wasn't moved to bin. fixes #7914 --- icinga2.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/icinga2.spec b/icinga2.spec index cf08101a9..e55799edb 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -268,14 +268,16 @@ exit 0 %if "%{_vendor}" == "suse" %verifyscript bin %verify_permissions -e %{_rundir}/%{name}/cmd + +%if 0%{?suse_version} >= 1310 +%post bin +%set_permissions %{_rundir}/%{name}/cmd +%endif %endif %post common # suse %if "%{_vendor}" == "suse" -%if 0%{?suse_version} >= 1310 -%set_permissions %{_rundir}/%{name}/cmd -%endif %if 0%{?use_systemd} %fillup_only %{name} %service_add_post %{name}.service