bentebbutt commited on
Commit
5bd1b0c
·
verified ·
1 Parent(s): 21e9344

Update start_ollama.sh

Browse files
Files changed (1) hide show
  1. start_ollama.sh +1 -1
start_ollama.sh CHANGED
@@ -6,7 +6,7 @@ ollama serve &
6
 
7
  # Wait for the ollama server to start
8
  echo "Waiting for ollama server to start..."
9
- while ! nc -z localhost 11434; do
10
  sleep 1
11
  done
12
  echo "ollama server started"
 
6
 
7
  # Wait for the ollama server to start
8
  echo "Waiting for ollama server to start..."
9
+ while ! grep -q "Listening on 127.0.0.1:11434" <(tail -f ~/.ollama/log.txt); do
10
  sleep 1
11
  done
12
  echo "ollama server started"