mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-10 04:27:25 +01:00
Set proper user for files
This commit is contained in:
parent
64c41be34c
commit
ff08eaeb43
@ -51,16 +51,19 @@ install -Dpm 0644 scripts/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.c
|
|||||||
%systemd_preun %{name}.service
|
%systemd_preun %{name}.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
# Binary
|
||||||
|
%attr(-,clustercockpit,clustercockpit) %{_sbindir}/%{name}
|
||||||
|
# Configuration
|
||||||
%dir %{_sysconfdir}/%{name}
|
%dir %{_sysconfdir}/%{name}
|
||||||
%{_sbindir}/%{name}
|
%attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.json
|
||||||
|
%attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/collectors.json
|
||||||
|
%attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/sinks.json
|
||||||
|
%attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/receivers.json
|
||||||
|
%attr(0600,clustercockpit,clustercockpit) %config(noreplace) %{_sysconfdir}/%{name}/router.json
|
||||||
|
# Systemd
|
||||||
|
%{_sysusersdir}/%{name}.conf
|
||||||
%{_unitdir}/%{name}.service
|
%{_unitdir}/%{name}.service
|
||||||
%{_sysconfdir}/default/%{name}
|
%{_sysconfdir}/default/%{name}
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.json
|
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/collectors.json
|
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/sinks.json
|
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/receivers.json
|
|
||||||
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/router.json
|
|
||||||
%{_sysusersdir}/%{name}.conf
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Mar 03 2022 Thomas Gruber - 0.3
|
* Thu Mar 03 2022 Thomas Gruber - 0.3
|
||||||
|
Loading…
Reference in New Issue
Block a user