From ba5020138fcc3eaf6d8837f5ec067a3a362be499 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Thu, 16 Apr 2026 11:20:08 +0300 Subject: [PATCH] fix(rpm): rename sysusers files to match package names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cortex-gateway.conf/cortex-neuron.conf implied a hierarchy or coupling that doesn't exist — cortex and neuron are independent packages. Each package's sysusers.d file now matches the package name: cortex ships cortex.conf, neuron ships neuron.conf. Content is still identical (both create the cortex system user/group), and filenames remain distinct so the packages can coinstall. Co-Authored-By: Claude Opus 4.6 (1M context) --- cortex.spec | 4 ++-- neuron.spec | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cortex.spec b/cortex.spec index faba5a7..1a5427b 100644 --- a/cortex.spec +++ b/cortex.spec @@ -46,7 +46,7 @@ cargo build --release -p cortex-cli %install install -Dm755 target/release/cortex %{buildroot}%{_bindir}/cortex install -Dm644 data/cortex.service %{buildroot}%{_unitdir}/cortex.service -install -Dm644 data/cortex-sysusers.conf %{buildroot}%{_sysusersdir}/cortex-gateway.conf +install -Dm644 data/cortex-sysusers.conf %{buildroot}%{_sysusersdir}/cortex.conf install -dm750 %{buildroot}%{_sysconfdir}/cortex install -Dm640 cortex.example.toml %{buildroot}%{_sysconfdir}/cortex/cortex.toml install -Dm640 models.example.toml %{buildroot}%{_sysconfdir}/cortex/models.toml @@ -68,7 +68,7 @@ install -Dm640 models.example.toml %{buildroot}%{_sysconfdir}/cortex/models.toml %doc README.md %{_bindir}/cortex %{_unitdir}/cortex.service -%{_sysusersdir}/cortex-gateway.conf +%{_sysusersdir}/cortex.conf %dir %attr(750,root,cortex) %{_sysconfdir}/cortex %config(noreplace) %attr(640,root,cortex) %{_sysconfdir}/cortex/cortex.toml %config(noreplace) %attr(640,root,cortex) %{_sysconfdir}/cortex/models.toml diff --git a/neuron.spec b/neuron.spec index 85f4313..25fbb80 100644 --- a/neuron.spec +++ b/neuron.spec @@ -45,7 +45,7 @@ cargo build --release -p neuron %install install -Dm755 target/release/neuron %{buildroot}%{_bindir}/neuron install -Dm644 data/neuron.service %{buildroot}%{_unitdir}/neuron.service -install -Dm644 data/cortex-sysusers.conf %{buildroot}%{_sysusersdir}/cortex-neuron.conf +install -Dm644 data/cortex-sysusers.conf %{buildroot}%{_sysusersdir}/neuron.conf install -dm750 %{buildroot}%{_sysconfdir}/cortex install -Dm640 neuron.example.toml %{buildroot}%{_sysconfdir}/cortex/neuron.toml @@ -66,7 +66,7 @@ install -Dm640 neuron.example.toml %{buildroot}%{_sysconfdir}/cortex/neuron.toml %doc README.md %{_bindir}/neuron %{_unitdir}/neuron.service -%{_sysusersdir}/cortex-neuron.conf +%{_sysusersdir}/neuron.conf %dir %attr(750,root,cortex) %{_sysconfdir}/cortex %config(noreplace) %attr(640,root,cortex) %{_sysconfdir}/cortex/neuron.toml