From 249ea57eb27124a4e056e8a1df33b226909a290b Mon Sep 17 00:00:00 2001 From: Daniel Steiner Date: Fri, 31 Dec 2021 15:24:02 +0100 Subject: [PATCH] Config file calling in systemd script added --- fedora/SPECS/navidrome.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fedora/SPECS/navidrome.spec b/fedora/SPECS/navidrome.spec index c5076f5..e7fa2b1 100644 --- a/fedora/SPECS/navidrome.spec +++ b/fedora/SPECS/navidrome.spec @@ -12,6 +12,7 @@ URL: https://www.navidrome.org Source0: %{name}-%{version}.tar.gz Source1: %{name}.toml Source2: navidrome.sysuser +Source3: navidrome.service BuildRequires: nodejs >= 16 BuildRequires: npm @@ -57,7 +58,7 @@ go build -ldflags="-X github.com/%{name}/%{name}/consts.gitSha=%{gitSha} -X gith %install install -Dm755 %{name} %{buildroot}%{_bindir}/%{name} -install -Dm0644 contrib/%{name}.service %{buildroot}%{_systemd_util_dir}/system/%{name}.service +install -Dm0644 %{S:3} %{buildroot}%{_systemd_util_dir}/system/%{name}.service install -Dm0644 %{S:1} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.toml install -Dm0644 %{S:2} %{buildroot}%{_prefix}/lib/sysusers.d/%{name}.conf install -dm0750 %{buildroot}%{_sharedstatedir}/%{name}