From 0232dbd89d5e30916e78d2cd37aac2fa98e66f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 1 Jul 2025 09:46:07 +0200 Subject: [PATCH] Update openwebui.sh (#5601) --- ct/openwebui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/openwebui.sh b/ct/openwebui.sh index dffb9dd01..a1ded95d3 100644 --- a/ct/openwebui.sh +++ b/ct/openwebui.sh @@ -30,11 +30,11 @@ function update_script() { if [ -x "/usr/bin/ollama" ]; then msg_info "Updating Ollama" - rm -rf /usr/lib/ollama - rm -rf /usr/bin/ollama 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 + 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