File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,17 @@ function update_script() {
3333 OLLAMA_VERSION=$( ollama -v | awk ' {print $NF}' )
3434 RELEASE=$( curl -s https://api.github.com/repos/ollama/ollama/releases/latest | grep " tag_name" | awk ' {print substr($2, 3, length($2)-4)}' )
3535 if [ " $OLLAMA_VERSION " != " $RELEASE " ]; then
36+ msg_info " Stopping Service"
37+ systemctl stop ollama
38+ msg_ok " Stopped Service"
39+ curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz
3640 rm -rf /usr/lib/ollama
3741 rm -rf /usr/bin/ollama
38- curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz
3942 tar -C /usr -xzf ollama-linux-amd64.tgz
4043 rm -rf ollama-linux-amd64.tgz
44+ msg_info " Starting Service"
45+ systemctl start ollama
46+ msg_info " Started Service"
4147 msg_ok " Ollama updated to version $RELEASE "
4248 else
4349 msg_ok " Ollama is already up to date."
You can’t perform that action at this time.
0 commit comments