Skip to content

Commit f4df8e2

Browse files
authored
Update openwebui.sh (#7582)
1 parent f03f004 commit f4df8e2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ct/openwebui.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)