From 8c16410e2625a130d0b6e821f2b23c522512027b Mon Sep 17 00:00:00 2001
From: William Warriner <wwarr@uab.edu>
Date: Fri, 11 Oct 2024 14:03:04 -0500
Subject: [PATCH] update setup script

---
 setup-ollama.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 setup-ollama.sh

diff --git a/setup-ollama.sh b/setup-ollama.sh
old mode 100644
new mode 100755
index efbe191..f949609
--- a/setup-ollama.sh
+++ b/setup-ollama.sh
@@ -1,10 +1,13 @@
-#!/bin/sh
+#!/bin/bash
 
 VERSION=0.3.4
 TARGET=linux-amd64
 
-wget -O ollama "https://github.com/ollama/ollama/releases/download/${VERSION}/ollama-${TARGET}"
+wget -O ollama "https://github.com/ollama/ollama/releases/download/v${VERSION}/ollama-${TARGET}"
 chmod u+x ollama
 
+./ollama serve &
+pid=$!
 ./ollama pull llama3.1:8b
 ./ollama pull bge-m3:latest # rag model
+kill -9 $pid
-- 
GitLab