From 1dadb178580e8889dfb66e7ed35f8d7816cfd2c7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 19 May 2013 17:53:29 +0000 Subject: [PATCH] sudoers.d added to install --- check_hpacucli/nagios-okplugin-check_hpacucli.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check_hpacucli/nagios-okplugin-check_hpacucli.spec b/check_hpacucli/nagios-okplugin-check_hpacucli.spec index 3b90f7b..786f33a 100644 --- a/check_hpacucli/nagios-okplugin-check_hpacucli.spec +++ b/check_hpacucli/nagios-okplugin-check_hpacucli.spec @@ -19,7 +19,7 @@ Checks HP Array with hpacucli %prep %setup -q perl -pi -e "s|/usr/lib|%{_libdir}|g" nrpe.d/check_hpacucli.cfg -perl -pi -e "s|/usr/lib|%{_libdir}|g" sudoers.d/* +perl -pi -e "s|/usr/lib64|%{_libdir}|g" sudoers.d/* %build @@ -28,6 +28,7 @@ perl -pi -e "s|/usr/lib|%{_libdir}|g" sudoers.d/* rm -rf %{buildroot} install -D -p -m 0755 check_hpacucli.py %{buildroot}%{_libdir}/nagios/plugins/check_hpacucli.py install -D -p -m 0755 nrpe.d/check_hpacucli.cfg %{buildroot}/etc/nrpe.d/check_hpacucli.cfg +install -D -p -m 0755 sudoers.d/check_hpacucli %{buildroot}/etc/sudoers.d/check_hpacucli %clean rm -rf %{buildroot}