Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
ordered list of install locations
Michael Yang29c056ea39a0
diff --git a/scripts/install.sh b/scripts/install.shindex e1ce40846..d0ce5d473 100644--- a/scripts/install.sh+++ b/scripts/install.sh@@ -54,9 +54,13 @@ fistatus "Downloading ollama..."curl --fail --show-error --location --progress-bar -o $TEMP_DIR/ollama "https://ollama.ai/download/ollama-linux-$ARCH"-status "Installing ollama to /usr/bin..."-$SUDO install -o0 -g0 -m755 -d /usr/bin-$SUDO install -o0 -g0 -m755 $TEMP_DIR/ollama /usr/bin/ollama+for BINDIR in /usr/local/bin /usr/bin /bin; do+ echo $PATH | grep -q $BINDIR && break || continue+done++status "Installing ollama to $BINDIR..."+$SUDO install -o0 -g0 -m755 -d $BINDIR+$SUDO install -o0 -g0 -m755 $TEMP_DIR/ollama $BINDIR/ollamainstall_success() { status 'Install complete. Run "ollama" from the command line.'; }trap install_success EXIT@@ -76,7 +80,7 @@ Description=Ollama ServiceAfter=network-online.target[Service]-ExecStart=/usr/bin/ollama serve+ExecStart=$BINDIR/ollama serveUser=ollamaGroup=ollamaRestart=always