Fix path after installation to /usr/bin after installation

This commit is contained in:
Thomas Roehl 2023-08-31 15:12:43 +02:00
parent c64943a954
commit 62720dec13
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ Restart=on-failure
WorkingDirectory=/tmp WorkingDirectory=/tmp
RuntimeDirectory=cc-metric-collector RuntimeDirectory=cc-metric-collector
RuntimeDirectoryMode=0750 RuntimeDirectoryMode=0750
ExecStart=/usr/sbin/cc-metric-collector --config=${CONF_FILE} ExecStart=/usr/bin/cc-metric-collector --config=${CONF_FILE}
LimitNOFILE=10000 LimitNOFILE=10000
TimeoutStopSec=20 TimeoutStopSec=20
UMask=0027 UMask=0027

View File

@ -29,7 +29,7 @@ make
%install %install
install -Dpm 0750 %{name} %{buildroot}%{_sbindir}/%{name} install -Dpm 0750 %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm 0600 config.json %{buildroot}%{_sysconfdir}/%{name}/%{name}.json install -Dpm 0600 config.json %{buildroot}%{_sysconfdir}/%{name}/%{name}.json
install -Dpm 0600 collectors.json %{buildroot}%{_sysconfdir}/%{name}/collectors.json install -Dpm 0600 collectors.json %{buildroot}%{_sysconfdir}/%{name}/collectors.json
install -Dpm 0600 sinks.json %{buildroot}%{_sysconfdir}/%{name}/sinks.json install -Dpm 0600 sinks.json %{buildroot}%{_sysconfdir}/%{name}/sinks.json
@ -54,7 +54,7 @@ install -Dpm 0644 scripts/%{name}.sysusers %{buildroot}%{_sysusersdir}/%{name}.c
%files %files
# Binary # Binary
%attr(-,clustercockpit,clustercockpit) %{_sbindir}/%{name} %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