other rw permission fix attempt [release 3.5.1-5mamba;Sun Jul 27 2014]
This commit is contained in:
parent
1cd95bdee2
commit
1925cc6cdf
16
nagios.spec
16
nagios.spec
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
Name: nagios
|
Name: nagios
|
||||||
Version: 3.5.1
|
Version: 3.5.1
|
||||||
Release: 3mamba
|
Release: 5mamba
|
||||||
Summary: An Open Source host, service and network monitoring program
|
Summary: An Open Source host, service and network monitoring program
|
||||||
Group: Network/Monitoring
|
Group: Network/Monitoring
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -164,7 +164,6 @@ install -d %{buildroot}%{_sysconfdir}/sysconfig
|
|||||||
touch %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
touch %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||||
|
|
||||||
install -d %{buildroot}%{_localstatedir}/spool/%{name}/rw
|
install -d %{buildroot}%{_localstatedir}/spool/%{name}/rw
|
||||||
touch %{buildroot}%{_localstatedir}/spool/%{name}/rw/nagios.cmd
|
|
||||||
|
|
||||||
install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins/eventhandlers
|
install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins/eventhandlers
|
||||||
|
|
||||||
@ -208,9 +207,9 @@ exit 0
|
|||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
if [ $1 -eq 1 ]; then
|
||||||
/sbin/chkconfig --add %{name}
|
/sbin/chkconfig --add %{name}
|
||||||
# add apache user to %{nsgrp} so sending commands to nagios
|
# add apache user to %{cmdgrp} so sending commands to nagios
|
||||||
# from the command CGI is possible
|
# from the command CGI is possible
|
||||||
%{_sbindir}/usermod -G %{nsgrp} apache >/dev/null 2>&1
|
%{_sbindir}/usermod -A %{cmdgrp} apache >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -251,8 +250,7 @@ exit 0
|
|||||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
|
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
|
||||||
%{_initrddir}/nagios
|
%{_initrddir}/nagios
|
||||||
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/spool/%{name}
|
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/spool/%{name}
|
||||||
%attr(2775,apache,nobody) %{_localstatedir}/spool/%{name}/rw
|
%attr(2771,apache,nagioscmd) %{_localstatedir}/spool/%{name}/rw
|
||||||
%config(noreplace) %attr(0644,apache,nobody) %{_localstatedir}/spool/%{name}/rw/nagios.cmd
|
|
||||||
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}
|
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}
|
||||||
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}/archives
|
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}/archives
|
||||||
%{_libdir}/%{name}/eventhandlers
|
%{_libdir}/%{name}/eventhandlers
|
||||||
@ -291,6 +289,12 @@ exit 0
|
|||||||
%{_includedir}/nagios/*.h
|
%{_includedir}/nagios/*.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-5mamba
|
||||||
|
- other rw permission fix attempt
|
||||||
|
|
||||||
|
* Sun Jul 27 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-4mamba
|
||||||
|
- fix rw dir owner,group to work (apache,nagios)
|
||||||
|
|
||||||
* Tue Jul 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-3mamba
|
* Tue Jul 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-3mamba
|
||||||
- provide empty %{_localstatedir}/spool/%{name}/rw/nagios.cmd and set webserver permissions (to dir also)
|
- provide empty %{_localstatedir}/spool/%{name}/rw/nagios.cmd and set webserver permissions (to dir also)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user