Fix plugin path for SLES.

Refs #5081
This commit is contained in:
Gunnar Beutner 2013-11-16 22:58:50 +01:00
parent 8f95bae779
commit 93bfb6778d
1 changed files with 2 additions and 0 deletions

View File

@ -235,7 +235,9 @@ install -D -m 0644 etc/icinga/cgi.cfg %{buildroot}%{icingaclassicconfdir}/cgi.cf
install -D -m 0644 etc/icinga/icinga-classic-apache.conf %{buildroot}%{apacheconfdir}/icinga.conf
# fix plugin path on x64
%if "%{_vendor}" != "suse"
sed -i 's@plugindir = .*@plugindir = "%{_libdir}/nagios/plugins"@' %{buildroot}/%{_sysconfdir}/%{name}/conf.d/macros.conf
%endif
%clean
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}