Apply some suggested changes to the user configuration
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/ollama?expand=0&rev=2
This commit is contained in:
parent
5a3ae9ab21
commit
b61d3cac10
@ -1,2 +1,2 @@
|
||||
#Type Name ID GECOS Home directory Shell
|
||||
u ollama - "Ollama" /usr/share/ollama -
|
||||
#Type Name ID GECOS Home directory Shell
|
||||
u ollama - "Ollama" /var/lib/ollama -
|
||||
|
@ -33,7 +33,7 @@ BuildRequires: sysuser-tools
|
||||
BuildRequires: golang(API) >= 1.21
|
||||
Requires(pre): shadow
|
||||
|
||||
%sysusers_requires
|
||||
%{sysusers_requires}
|
||||
|
||||
%description
|
||||
Get up and running with Llama 2, Mistral, Gemma, and other large language models.
|
||||
@ -57,7 +57,7 @@ go build .
|
||||
install -D -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
|
||||
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}-user.conf
|
||||
install -d %{buildroot}%{_datadir}/%{name}
|
||||
install -d %{buildroot}/var/lib/%{name}
|
||||
|
||||
%pre -f %{name}.pre
|
||||
%service_add_pre %{name}.service
|
||||
@ -77,6 +77,6 @@ install -d %{buildroot}%{_datadir}/%{name}
|
||||
%{_bindir}/%{name}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_sysusersdir}/%{name}-user.conf
|
||||
%attr(-, ollama, ollama) %{_datadir}/%{name}
|
||||
%attr(-, ollama, ollama) /var/lib/%{name}
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user