mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	fix openwebui update and installer (#7788)
* Update curl command to support resuming downloads * fix: correct curl command for downloading Ollama to support resuming
This commit is contained in:
		@@ -36,7 +36,7 @@ function update_script() {
 | 
				
			|||||||
      msg_info "Stopping Service"
 | 
					      msg_info "Stopping Service"
 | 
				
			||||||
      systemctl stop ollama
 | 
					      systemctl stop ollama
 | 
				
			||||||
      msg_ok "Stopped Service"
 | 
					      msg_ok "Stopped Service"
 | 
				
			||||||
      curl -fsCSLO https://ollama.com/download/ollama-linux-amd64.tgz
 | 
					      curl -fsSLO -C - https://ollama.com/download/ollama-linux-amd64.tgz
 | 
				
			||||||
      rm -rf /usr/lib/ollama
 | 
					      rm -rf /usr/lib/ollama
 | 
				
			||||||
      rm -rf /usr/bin/ollama
 | 
					      rm -rf /usr/bin/ollama
 | 
				
			||||||
      tar -C /usr -xzf ollama-linux-amd64.tgz
 | 
					      tar -C /usr -xzf ollama-linux-amd64.tgz
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,7 +48,7 @@ msg_ok "Installed Open WebUI"
 | 
				
			|||||||
read -r -p "${TAB3}Would you like to add Ollama? <y/N> " prompt
 | 
					read -r -p "${TAB3}Would you like to add Ollama? <y/N> " prompt
 | 
				
			||||||
if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
 | 
					if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
 | 
				
			||||||
  msg_info "Installing Ollama"
 | 
					  msg_info "Installing Ollama"
 | 
				
			||||||
  curl -fsCSLO https://ollama.com/download/ollama-linux-amd64.tgz
 | 
					  curl -fsSLO -C - https://ollama.com/download/ollama-linux-amd64.tgz
 | 
				
			||||||
  tar -C /usr -xzf ollama-linux-amd64.tgz
 | 
					  tar -C /usr -xzf ollama-linux-amd64.tgz
 | 
				
			||||||
  rm -rf ollama-linux-amd64.tgz
 | 
					  rm -rf ollama-linux-amd64.tgz
 | 
				
			||||||
  cat <<EOF >/etc/systemd/system/ollama.service
 | 
					  cat <<EOF >/etc/systemd/system/ollama.service
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user