mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	ollama: fix: ccurl continue on interrupts (#7620)
This commit is contained in:
		@@ -36,7 +36,7 @@ function update_script() {
 | 
			
		||||
    msg_ok "Services Stopped"
 | 
			
		||||
 | 
			
		||||
    TMP_TAR=$(mktemp --suffix=.tgz)
 | 
			
		||||
    curl -fL# -o "${TMP_TAR}" "https://github.com/ollama/ollama/releases/download/${RELEASE}/ollama-linux-amd64.tgz"
 | 
			
		||||
    curl -fL# -C - -o "${TMP_TAR}" "https://github.com/ollama/ollama/releases/download/${RELEASE}/ollama-linux-amd64.tgz"
 | 
			
		||||
    msg_info "Updating Ollama to ${RELEASE}"
 | 
			
		||||
    rm -rf /usr/local/lib/ollama
 | 
			
		||||
    rm -rf /usr/local/bin/ollama
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ mkdir -p $OLLAMA_INSTALL_DIR
 | 
			
		||||
OLLAMA_URL="https://github.com/ollama/ollama/releases/download/${RELEASE}/ollama-linux-amd64.tgz"
 | 
			
		||||
TMP_TAR="/tmp/ollama.tgz"
 | 
			
		||||
echo -e "\n"
 | 
			
		||||
if curl -fL# -o "$TMP_TAR" "$OLLAMA_URL"; then
 | 
			
		||||
if curl -fL# -C - -o "$TMP_TAR" "$OLLAMA_URL"; then
 | 
			
		||||
  if tar -xzf "$TMP_TAR" -C "$OLLAMA_INSTALL_DIR"; then
 | 
			
		||||
    ln -sf "$OLLAMA_INSTALL_DIR/bin/ollama" "$BINDIR/ollama"
 | 
			
		||||
    echo "${RELEASE}" >/opt/Ollama_version.txt
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user