-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
β Have you read and understood the above guidelines?
yes
π What is the name of the script you are using?
https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/openwebui.sh
π What was the exact command used to execute the script?
update in proxmox console for openwebui
βοΈ What settings are you using?
- Default Settings
- Advanced Settings
π₯οΈ Which Linux distribution are you using?
Debian 12
π Provide a clear and concise description of the issue.
In the update script there is an error : https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/openwebui.sh
The ollama binary is removed before checking its version. Please move the "rm -rf" commands on lib and bin within the IF release is different than current.
Otherwise, the ollama is removed and no more update is feasible on ollama afterward.
π Steps to reproduce the issue.
execute "update" with an ollama instance in Linux console from proxmox.
β Paste the full error output (if available).
Error at OLLAMA_VERSION=$(ollama -v | awk '{print $NF}') because ollama is removed just above
πΌοΈ Additional context (optional).
Work around, make your own update script for ollama π
root@HOME-LLM:~# cat ./update_ollama.sh #!/usr/bin/env bash source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) 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 msg_ok "Ollama updated to version $RELEASE" else msg_ok "Ollama is already up to date." fi