From: Michael Friedrich Date: Thu, 25 Jun 2015 15:13:28 +0000 (+0200) Subject: spec: run 'api setup' in post install X-Git-Tag: v2.4.0~560 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69ef1968f585b90b4bb756a68283cdf885bcdb13;p=icinga2 spec: run 'api setup' in post install refs #9471 --- diff --git a/icinga2.spec b/icinga2.spec index adfade654..9fb5295e2 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -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 -%if 0%{?suse_version} >= 1310 %post bin + +# install the api setup +%{_sbindir}/%{name} api setup + +# suse +%if "%{_vendor}" == "suse" + +%if 0%{?suse_version} >= 1310 %set_permissions %{_rundir}/%{name}/cmd %endif -%endif + +%endif #suse/rhel %post common # suse