mirror of
https://github.com/mudler/LocalAI.git
synced 2025-01-20 19:49:33 +00:00
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:
parent
3ee5ceb9fa
commit
0f9aa1ef91
4
docs/static/install.sh
vendored
4
docs/static/install.sh
vendored
@ -613,7 +613,9 @@ for PACKAGE_MANAGER in dnf yum apt-get; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "$DOCKER_INSTALL" = "true" ]; then
|
if [ "$DOCKER_INSTALL" = "true" ]; then
|
||||||
install_container_toolkit
|
if [ "$HAS_CUDA" = true ]; then
|
||||||
|
install_container_toolkit
|
||||||
|
fi
|
||||||
install_docker
|
install_docker
|
||||||
else
|
else
|
||||||
install_binary
|
install_binary
|
||||||
|
Loading…
Reference in New Issue
Block a user