spec: run 'api setup' in post install

refs #9471
This commit is contained in:
Michael Friedrich 2015-06-25 17:13:28 +02:00
parent 3e3588b9fb
commit 69ef1968f5
1 changed files with 11 additions and 3 deletions

View File

@ -322,17 +322,25 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
%service_add_pre %{name}.service
%endif
%endif
exit 0
%if "%{_vendor}" == "suse"
%verifyscript bin
%verify_permissions -e %{_rundir}/%{name}/cmd
%endif
%post bin
# install the api setup
%{_sbindir}/%{name} api setup
# suse
%if "%{_vendor}" == "suse"
%if 0%{?suse_version} >= 1310
%post bin
%set_permissions %{_rundir}/%{name}/cmd
%endif
%endif
%endif #suse/rhel
%post common
# suse