From 1ece87cb84b94c434efa134d5a181d96c8e21bce Mon Sep 17 00:00:00 2001 From: draeician Date: Wed, 15 May 2024 20:25:47 -0500 Subject: [PATCH] updated with ollama.service for env in /etc/default/ollama --- scripts/install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 20b0db60..0e0738ed 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -110,6 +110,8 @@ Group=ollama Restart=always RestartSec=3 Environment="PATH=$PATH" +EnvironmentFile=/etc/default/ollama +ExecStartPre=/bin/bash -c 'if [ -f /etc/default/ollama ]; then echo "Loaded environment file: /etc/default/ollama"; fi' [Install] WantedBy=default.target