fix(install.sh): install CUDA toolkit only if CUDA is detected

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-06-22 12:21:43 +02:00
parent 3ee5ceb9fa
commit 0f9aa1ef91

View File

@ -613,7 +613,9 @@ for PACKAGE_MANAGER in dnf yum apt-get; do
done
if [ "$DOCKER_INSTALL" = "true" ]; then
install_container_toolkit
if [ "$HAS_CUDA" = true ]; then
install_container_toolkit
fi
install_docker
else
install_binary