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
This commit is contained in:
Tim Hardeck 2014-12-01 20:13:05 +01:00 committed by Gunnar Beutner
parent 01f8706ed6
commit 6c1ec9e8c0
1 changed files with 5 additions and 3 deletions

View File

@ -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