Accepting request 1058011 from home:bmwiedemann:branches:server:monitoring
Drop harmful chown in %post scripts (boo#1155078) OBS-URL: https://build.opensuse.org/request/show/1058011 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/munin?expand=0&rev=75
This commit is contained in:
parent
260120093b
commit
fb069191df
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 12 13:16:28 UTC 2023 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- Drop harmful chown in %post scripts (boo#1155078)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 15 17:20:35 UTC 2022 - Carsten Ziepke <kieltux@gmail.com>
|
Thu Dec 15 17:20:35 UTC 2022 - Carsten Ziepke <kieltux@gmail.com>
|
||||||
|
|
||||||
|
18
munin.spec
18
munin.spec
@ -228,12 +228,6 @@ getent passwd munin > /dev/null || %{_sbindir}/useradd -r -c "munin monitoring"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
chown -R munin:munin %{htmldir}
|
|
||||||
chown -R munin:munin %{dbdir}
|
|
||||||
chmod 755 %{dbdir}
|
|
||||||
touch %{logdir}/munin-graph.log %{logdir}/munin-html.log %{logdir}/munin-nagios.log %{logdir}/munin-limits.log %{logdir}/munin-update.log
|
|
||||||
chown munin:munin %{logdir}/*
|
|
||||||
chown root:root %{logdir}/munin-node.log* >/dev/null 2>&1 || true
|
|
||||||
%tmpfiles_create munin.conf
|
%tmpfiles_create munin.conf
|
||||||
%service_add_post munin-cgi-graph.service
|
%service_add_post munin-cgi-graph.service
|
||||||
%service_add_post munin-cgi-html.service
|
%service_add_post munin-cgi-html.service
|
||||||
@ -273,12 +267,6 @@ getent passwd munin > /dev/null || %{_sbindir}/useradd -r -c "munin monitoring"
|
|||||||
if [ $1 = 1 ]; then
|
if [ $1 = 1 ]; then
|
||||||
%{_sbindir}/munin-node-configure --shell | sh
|
%{_sbindir}/munin-node-configure --shell | sh
|
||||||
fi
|
fi
|
||||||
chown -R munin:munin %{dbdir}
|
|
||||||
chmod 755 %{dbdir}
|
|
||||||
touch %{logdir}/munin-node.log
|
|
||||||
chown munin:munin %{logdir}/*
|
|
||||||
chown root:root %{logdir}/munin-node.log*
|
|
||||||
chown -R nobody:nobody %{dbdir}/plugin-state/* >/dev/null 2>&1
|
|
||||||
%tmpfiles_create munin-node.conf
|
%tmpfiles_create munin-node.conf
|
||||||
%service_add_post munin-node.service
|
%service_add_post munin-node.service
|
||||||
%firewalld_reload
|
%firewalld_reload
|
||||||
@ -368,6 +356,11 @@ chown -R nobody:nobody %{dbdir}/plugin-state/* >/dev/null 2>&1
|
|||||||
%{_mandir}/man8/munin.8%{?ext_man}
|
%{_mandir}/man8/munin.8%{?ext_man}
|
||||||
%attr(0750, munin, munin) %dir %{logdir}
|
%attr(0750, munin, munin) %dir %{logdir}
|
||||||
%attr(0755, munin, munin) %dir %{dbdir}
|
%attr(0755, munin, munin) %dir %{dbdir}
|
||||||
|
%ghost %attr(0644, munin, munin) %{logdir}/munin-graph.log
|
||||||
|
%ghost %attr(0644, munin, munin) %{logdir}/munin-html.log
|
||||||
|
%ghost %attr(0644, munin, munin) %{logdir}/munin-nagios.log
|
||||||
|
%ghost %attr(0644, munin, munin) %{logdir}/munin-limits.log
|
||||||
|
%ghost %attr(0644, munin, munin) %{logdir}/munin-update.log
|
||||||
%ghost /run/munin
|
%ghost /run/munin
|
||||||
|
|
||||||
%files node
|
%files node
|
||||||
@ -452,6 +445,7 @@ chown -R nobody:nobody %{dbdir}/plugin-state/* >/dev/null 2>&1
|
|||||||
%attr(0750, munin, munin) %dir %{logdir}
|
%attr(0750, munin, munin) %dir %{logdir}
|
||||||
%attr(0755, munin, munin) %dir %{dbdir}
|
%attr(0755, munin, munin) %dir %{dbdir}
|
||||||
%attr(0775, nobody, nobody) %dir %{dbdir}/plugin-state
|
%attr(0775, nobody, nobody) %dir %{dbdir}/plugin-state
|
||||||
|
%ghost %{logdir}/munin-node.log
|
||||||
%ghost /run/munin
|
%ghost /run/munin
|
||||||
%dir %{_prefix}/lib/firewalld
|
%dir %{_prefix}/lib/firewalld
|
||||||
%dir %{_prefix}/lib/firewalld/services
|
%dir %{_prefix}/lib/firewalld/services
|
||||||
|
Loading…
Reference in New Issue
Block a user