Skip to content

Commit 0232dbd

Browse files
authored
Update openwebui.sh (#5601)
1 parent 70f43cb commit 0232dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ct/openwebui.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ function update_script() {
3030

3131
if [ -x "/usr/bin/ollama" ]; then
3232
msg_info "Updating Ollama"
33-
rm -rf /usr/lib/ollama
34-
rm -rf /usr/bin/ollama
3533
OLLAMA_VERSION=$(ollama -v | awk '{print $NF}')
3634
RELEASE=$(curl -s https://api.github.com/repos/ollama/ollama/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
3735
if [ "$OLLAMA_VERSION" != "$RELEASE" ]; then
36+
rm -rf /usr/lib/ollama
37+
rm -rf /usr/bin/ollama
3838
curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz
3939
tar -C /usr -xzf ollama-linux-amd64.tgz
4040
rm -rf ollama-linux-amd64.tgz

0 commit comments

Comments
 (0)