Spaces:
Runtime error
Runtime error
Update execute.sh
Browse files- execute.sh +5 -2
execute.sh
CHANGED
@@ -8,8 +8,11 @@ log() {
|
|
8 |
# Install and run Ollama
|
9 |
log "Starting Ollama installation..."
|
10 |
if ! curl -fsSL https://ollama.com/install.sh | sh; then
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
13 |
fi
|
14 |
log "Ollama installation completed."
|
15 |
|
|
|
8 |
# Install and run Ollama
|
9 |
log "Starting Ollama installation..."
|
10 |
if ! curl -fsSL https://ollama.com/install.sh | sh; then
|
11 |
+
# If the initial installation fails, try using sudo
|
12 |
+
if ! curl -fsSL https://ollama.com/install.sh | sudo sh; then
|
13 |
+
log "Failed to install Ollama even with sudo."
|
14 |
+
exit 1
|
15 |
+
fi
|
16 |
fi
|
17 |
log "Ollama installation completed."
|
18 |
|