Config file calling in systemd script added
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user