From 93bfb6778d9a40d24ff66e065581d5b06c4e360a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 16 Nov 2013 22:58:50 +0100 Subject: [PATCH] Fix plugin path for SLES. Refs #5081 --- icinga2.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/icinga2.spec b/icinga2.spec index 42c8c6ad8..7b11997c4 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -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} -- 2.40.0