We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f43cb commit 0232dbdCopy full SHA for 0232dbd
ct/openwebui.sh
@@ -30,11 +30,11 @@ function update_script() {
30
31
if [ -x "/usr/bin/ollama" ]; then
32
msg_info "Updating Ollama"
33
- rm -rf /usr/lib/ollama
34
- rm -rf /usr/bin/ollama
35
OLLAMA_VERSION=$(ollama -v | awk '{print $NF}')
36
RELEASE=$(curl -s https://api.github.com/repos/ollama/ollama/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
37
if [ "$OLLAMA_VERSION" != "$RELEASE" ]; then
+ rm -rf /usr/lib/ollama
+ rm -rf /usr/bin/ollama
38
curl -fsSLO https://ollama.com/download/ollama-linux-amd64.tgz
39
tar -C /usr -xzf ollama-linux-amd64.tgz
40
rm -rf ollama-linux-amd64.tgz
0 commit comments