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
|
||||
Version: 3.5.1
|
||||
Release: 3mamba
|
||||
Release: 5mamba
|
||||
Summary: An Open Source host, service and network monitoring program
|
||||
Group: Network/Monitoring
|
||||
Vendor: openmamba
|
||||
@ -164,7 +164,6 @@ install -d %{buildroot}%{_sysconfdir}/sysconfig
|
||||
touch %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
|
||||
install -d %{buildroot}%{_localstatedir}/spool/%{name}/rw
|
||||
touch %{buildroot}%{_localstatedir}/spool/%{name}/rw/nagios.cmd
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins/eventhandlers
|
||||
|
||||
@ -208,9 +207,9 @@ exit 0
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
/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
|
||||
%{_sbindir}/usermod -G %{nsgrp} apache >/dev/null 2>&1
|
||||
%{_sbindir}/usermod -A %{cmdgrp} apache >/dev/null 2>&1
|
||||
fi
|
||||
exit 0
|
||||
|
||||
@ -251,8 +250,7 @@ exit 0
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
|
||||
%{_initrddir}/nagios
|
||||
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/spool/%{name}
|
||||
%attr(2775,apache,nobody) %{_localstatedir}/spool/%{name}/rw
|
||||
%config(noreplace) %attr(0644,apache,nobody) %{_localstatedir}/spool/%{name}/rw/nagios.cmd
|
||||
%attr(2771,apache,nagioscmd) %{_localstatedir}/spool/%{name}/rw
|
||||
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}
|
||||
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}/archives
|
||||
%{_libdir}/%{name}/eventhandlers
|
||||
@ -291,6 +289,12 @@ exit 0
|
||||
%{_includedir}/nagios/*.h
|
||||
|
||||
%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
|
||||
- provide empty %{_localstatedir}/spool/%{name}/rw/nagios.cmd and set webserver permissions (to dir also)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user