Fixes in sh

This commit is contained in:
Antonio de la Rosa 2025-04-02 23:52:39 +02:00
parent 84115c12d5
commit b35c2ed331

View file

@ -17,7 +17,7 @@ run_command() {
eval "${cmd} < /dev/null" >> "${LOG_FILE}" 2>&1
if [ $? -ne 0 ]; then
die "Falló al ejecutar: ${description}"
die "Falló al ejecutar: ${cmd}"
fi
}
@ -161,14 +161,14 @@ run_command "incus exec ollama-container -- bash -c 'echo \"deb [signed-by=/usr
run_command "incus exec ollama-container -- apt -y update" "Update Cuda drivers repo"
run_command "incus exec ollama-container -- apt -y install cuda-drivers" "Installing cuda drivers"
run_command "incus exec ollama-container -- bash -c 'DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes install cuda-drivers'" "Installing cuda drivers"
echo "Install Ollama in container ollama-container"
#run_command "incus exec ollama-container -- apt -y install curl " ""
run_command "incus exec ollama-container -- curl -fsSL https://ollama.com/install.sh | sh" "Installing Ollama..."
run_command "incus exec ollama-container -- ollama run gemma3:4b" "Installing model gemma3:4b"
run_command "incus exec ollama-container -- ollama run gemma3:4b" "Installing model gemma3:4b..."
echo "Done!!!"