From bb794fe2fcdac4044942d059524db67873acb14b Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 2 Apr 2025 17:59:19 +0200 Subject: [PATCH] Fixes in sh --- install_incus_ollama.sh | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/install_incus_ollama.sh b/install_incus_ollama.sh index 950ac71..752c26b 100644 --- a/install_incus_ollama.sh +++ b/install_incus_ollama.sh @@ -129,16 +129,16 @@ run_command "incus exec ollama-container -- mkdir -p /etc/apt/keyrings/" "Aña run_command "incus exec ollama-container -- curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc" "Añadir gpg zabbly en /et/apt/keyrings" -run_command "incus exec ollama-container -- sh -c 'cat < /etc/apt/sources.list.d/zabbly-incus-stable.sources \ -Enabled: yes \ -Types: deb \ -URIs: https://pkgs.zabbly.com/incus/stable \ -Suites: $(. /etc/os-release && echo ${VERSION_CODENAME}) \ -Components: main \ -Architectures: $(dpkg --print-architecture) \ -Signed-By: /etc/apt/keyrings/zabbly.asc \ -\ -EOF'" "Add incus stable repo" +run_command "incus exec ollama-container -- bash -c 'cat < /etc/apt/sources.list.d/zabbly-incus-stable.sources +Enabled: yes +Types: deb +URIs: https://pkgs.zabbly.com/incus/stable +Suites: $(. /etc/os-release && echo ${VERSION_CODENAME}) +Components: main +Architectures: $(dpkg --print-architecture) +Signed-By: /etc/apt/keyrings/zabbly.asc + +EOF'" "Añadir incus stable repo" run_command "incus exec ollama-container -- apt-get update && sudo apt-get upgrade" "Upgrade repos..." @@ -157,8 +157,7 @@ run_command "incus exec ollama-container -- dpkg -i cuda-keyring_1.1-1_all.deb" run_command "incus exec ollama-container -- apt-get -y -f install" "" run_command "incus exec ollama-container -- apt update" "" -run_command "incus exec ollama-container -- bash -c 'echo \"deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /\" \ - | tee /etc/apt/sources.list.d/cuda-debian12-x86_64.list'" "" +run_command "incus exec ollama-container -- bash -c 'echo \"deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /\" | tee /etc/apt/sources.list.d/cuda-debian12-x86_64.list'" "" run_command "incus exec ollama-container -- apt -y update" ""