rpm: chown on /usr/bin/cc-metric-collector is unnecessary

The file belongs to root otherwise. The monitoring user can already
execute it. The monitoring user should not be allowed to change the
file, which is slightly more restricting. However it is in line with
what 99.9% of packages will do.
This commit is contained in:
Michael Panzlaff
2026-04-08 15:54:36 +02:00
parent 0ecf06cee7
commit 65b9c0ea14

View File

@@ -53,8 +53,6 @@ install -Dpm 0644 scripts/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.c
%systemd_preun %{name}.service %systemd_preun %{name}.service
%files %files
# Binary
%attr(-,clustercockpit,clustercockpit) %{_bindir}/%{name}
# Config # Config
%dir %{_sysconfdir}/%{name} %dir %{_sysconfdir}/%{name}
%attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.json %attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.json