Skip to content

Commit 4606782

Browse files
authored
ollama: fix: ccurl continue on interrupts (#7620)
1 parent a988acf commit 4606782

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/ollama.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function update_script() {
3636
msg_ok "Services Stopped"
3737

3838
TMP_TAR=$(mktemp --suffix=.tgz)
39-
curl -fL# -o "${TMP_TAR}" "https://github.com/ollama/ollama/releases/download/${RELEASE}/ollama-linux-amd64.tgz"
39+
curl -fL# -C - -o "${TMP_TAR}" "https://github.com/ollama/ollama/releases/download/${RELEASE}/ollama-linux-amd64.tgz"
4040
msg_info "Updating Ollama to ${RELEASE}"
4141
rm -rf /usr/local/lib/ollama
4242
rm -rf /usr/local/bin/ollama

install/ollama-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ mkdir -p $OLLAMA_INSTALL_DIR
5151
OLLAMA_URL="https://github.com/ollama/ollama/releases/download/${RELEASE}/ollama-linux-amd64.tgz"
5252
TMP_TAR="/tmp/ollama.tgz"
5353
echo -e "\n"
54-
if curl -fL# -o "$TMP_TAR" "$OLLAMA_URL"; then
54+
if curl -fL# -C - -o "$TMP_TAR" "$OLLAMA_URL"; then
5555
if tar -xzf "$TMP_TAR" -C "$OLLAMA_INSTALL_DIR"; then
5656
ln -sf "$OLLAMA_INSTALL_DIR/bin/ollama" "$BINDIR/ollama"
5757
echo "${RELEASE}" >/opt/Ollama_version.txt

0 commit comments

Comments
 (0)