Fixes in sh
This commit is contained in:
parent
b35c2ed331
commit
a10af0ebaa
1 changed files with 11 additions and 10 deletions
|
|
@ -1,5 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script para inicializar Incus (LXD) con configuraciones básicas
|
||||
|
||||
# Colores para la salida
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
LOG_FILE="/tmp/incus_ollama_install.log"
|
||||
|
||||
|
||||
# Función para mostrar mensajes de error y salir
|
||||
|
||||
die () {
|
||||
|
|
@ -24,15 +34,6 @@ run_command() {
|
|||
|
||||
echo "Instalando Incus"
|
||||
|
||||
# Script para inicializar Incus (LXD) con configuraciones básicas
|
||||
|
||||
# Colores para la salida
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
LOG_FILE="/tmp/incus_ollama_install.log"
|
||||
|
||||
# Configuración (puedes modificar estos valores)
|
||||
STORAGE_POOL="default"
|
||||
STORAGE_DRIVER="dir" # Puede ser 'btrfs', 'zfs', 'lvm', 'dir', etc.
|
||||
|
|
@ -166,7 +167,7 @@ run_command "incus exec ollama-container -- bash -c 'DEBIAN_FRONTEND=noninterac
|
|||
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 -- bash -c 'curl -fsSL https://ollama.com/install.sh | sh'" "Installing Ollama..."
|
||||
|
||||
run_command "incus exec ollama-container -- ollama run gemma3:4b" "Installing model gemma3:4b..."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue