diff --git a/ollama-user.conf b/ollama-user.conf index e36308d..1487342 100644 --- a/ollama-user.conf +++ b/ollama-user.conf @@ -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 - diff --git a/ollama.spec b/ollama.spec index 4aba141..6fe1e43 100644 --- a/ollama.spec +++ b/ollama.spec @@ -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