mirror of https://github.com/Icinga/icinga2.git
Use _libexecdir instead of static path
Instead of the static file path /usr/lib/icinga2/ the macro _libexecdir is used, which is defined at the beginning. refs #7913
This commit is contained in:
parent
a5c206cbe2
commit
2615425449
|
@ -24,6 +24,8 @@
|
||||||
%define _rundir %{_localstatedir}/run
|
%define _rundir %{_localstatedir}/run
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%define _libexecdir %{_prefix}/lib/
|
||||||
|
|
||||||
%if "%{_vendor}" == "redhat"
|
%if "%{_vendor}" == "redhat"
|
||||||
%define apachename httpd
|
%define apachename httpd
|
||||||
%define apacheconfdir %{_sysconfdir}/httpd/conf.d
|
%define apacheconfdir %{_sysconfdir}/httpd/conf.d
|
||||||
|
@ -483,7 +485,7 @@ exit 0
|
||||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/*
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/*
|
||||||
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
|
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
|
||||||
/usr/lib/icinga2/prepare-dirs
|
%{_libexecdir}/%{name}/prepare-dirs
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
|
||||||
|
|
Loading…
Reference in New Issue