mirror of https://github.com/ollama/ollama.git
Merge 04d9e178de
into bc71278670
This commit is contained in:
commit
225a2ab93a
|
@ -79,9 +79,13 @@ status "Installing ollama to $OLLAMA_INSTALL_DIR"
|
|||
$SUDO install -o0 -g0 -m755 -d $BINDIR
|
||||
$SUDO install -o0 -g0 -m755 -d "$OLLAMA_INSTALL_DIR/lib/ollama"
|
||||
status "Downloading Linux ${ARCH} bundle"
|
||||
curl --fail --show-error --location --progress-bar \
|
||||
"https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}" | \
|
||||
$SUDO tar -xzf - -C "$OLLAMA_INSTALL_DIR"
|
||||
if ! curl --fail --show-error --location --progress-bar --output "ollama-linux-${ARCH}.tgz${VER_PARAM}" \
|
||||
"https://ollama.com/download/ollama-linux-${ARCH}.tgz${VER_PARAM}"; then
|
||||
error "Failed to download or extract Ollama"
|
||||
fi
|
||||
status "Unpacking Ollama"
|
||||
$SUDO tar -xzf "ollama-linux-${ARCH}.tgz${VER_PARAM}" -C "$OLLAMA_INSTALL_DIR"
|
||||
rm "ollama-linux-${ARCH}.tgz${VER_PARAM}"
|
||||
|
||||
if [ "$OLLAMA_INSTALL_DIR/bin/ollama" != "$BINDIR/ollama" ] ; then
|
||||
status "Making ollama accessible in the PATH in $BINDIR"
|
||||
|
|
Loading…
Reference in New Issue