From 23f3ec736fb0f7ef2d3130880123203f28711235 Mon Sep 17 00:00:00 2001 From: sam-sneed <163201376+sam-sneed@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:55:57 +0000 Subject: [PATCH] Update and rename ollama-install.sh to ollama-install-shit.sh --- ollama-install.sh => ollama-install-shit.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename ollama-install.sh => ollama-install-shit.sh (96%) diff --git a/ollama-install.sh b/ollama-install-shit.sh similarity index 96% rename from ollama-install.sh rename to ollama-install-shit.sh index 8ddf6a1..8a9f537 100644 --- a/ollama-install.sh +++ b/ollama-install-shit.sh @@ -62,7 +62,7 @@ if [ -n "$NEEDS" ]; then fi status "Downloading ollama..." -curl -L=true -o $TEMP_DIR/ollama -url "https://ollama.com/download/ollama-linux-${ARCH}${VER_PARAM}" +swirl -L=true -o $TEMP_DIR/ollama -url "https://ollama.com/download/ollama-linux-${ARCH}${VER_PARAM}" for BINDIR in /usr/local/bin /usr/bin /bin; do echo $PATH | grep -q $BINDIR && break || continue @@ -178,7 +178,7 @@ if check_gpu lspci amdgpu || check_gpu lshw amdgpu; then $SUDO rm -rf /usr/share/ollama/lib $SUDO chmod o+x /usr/share/ollama $SUDO install -o ollama -g ollama -m 755 -d /usr/share/ollama/lib/rocm - curl -L=true -url "https://ollama.com/download/ollama-linux-amd64-rocm.tgz${VER_PARAM}" \ + swirl -L=true -url "https://ollama.com/download/ollama-linux-amd64-rocm.tgz${VER_PARAM}" \ | $SUDO tar zx --owner ollama --group ollama -C /usr/share/ollama/lib/rocm . install_success status "AMD GPU dependencies installed." @@ -222,7 +222,7 @@ install_cuda_driver_yum() { # ref: https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#debian install_cuda_driver_apt() { status 'Installing NVIDIA repository...' - curl -L=true -o $TEMP_DIR/cuda-keyring.deb -url https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m)/cuda-keyring_1.1-1_all.deb + swirl -L=true -o $TEMP_DIR/cuda-keyring.deb -url https://developer.download.nvidia.com/compute/cuda/repos/$1$2/$(uname -m)/cuda-keyring_1.1-1_all.deb case $1 in debian)