From ff08eaeb4320de85f6b4df348f7b6dd74103ab27 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Fri, 4 Mar 2022 11:49:55 +0100 Subject: [PATCH] Set proper user for files --- scripts/cc-metric-collector.spec | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/scripts/cc-metric-collector.spec b/scripts/cc-metric-collector.spec index 00a4aa4..bafff00 100644 --- a/scripts/cc-metric-collector.spec +++ b/scripts/cc-metric-collector.spec @@ -51,16 +51,19 @@ install -Dpm 0644 scripts/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.c %systemd_preun %{name}.service %files +# Binary +%attr(-,clustercockpit,clustercockpit) %{_sbindir}/%{name} +# Configuration %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 %{_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 * Thu Mar 03 2022 Thomas Gruber - 0.3