From f4df8e2ccc6a55aba3a28b54c96b1e2bd63bed84 Mon Sep 17 00:00:00 2001 From: webmogul1 Date: Fri, 12 Sep 2025 06:30:00 -0400 Subject: [PATCH] Update openwebui.sh (#7582) --- ct/openwebui.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ct/openwebui.sh b/ct/openwebui.sh index 152880868..ac7596f62 100644 --- a/ct/openwebui.sh +++ b/ct/openwebui.sh @@ -33,11 +33,17 @@ function update_script() { OLLAMA_VERSION=$(ollama -v | awk '{print $NF}') RELEASE=$(curl -s https://api.github.com/repos/ollama/ollama/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') if [ "$OLLAMA_VERSION" != "$RELEASE" ]; then + msg_info "Stopping Service" + systemctl stop ollama + msg_ok "Stopped Service" + curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz rm -rf /usr/lib/ollama rm -rf /usr/bin/ollama - curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz tar -C /usr -xzf ollama-linux-amd64.tgz rm -rf ollama-linux-amd64.tgz + msg_info "Starting Service" + systemctl start ollama + msg_info "Started Service" msg_ok "Ollama updated to version $RELEASE" else msg_ok "Ollama is already up to date."