Compare commits

...

1 Commits

Author SHA1 Message Date
Bruce MacDonald
34515870ce install: check team identifier after download
After downloading the ollama application from ollama.com verify that the team ID is what we expect
2026-02-18 13:23:14 -08:00

View File

@@ -70,6 +70,17 @@ if [ "$OS" = "Darwin" ]; then
status "Installing Ollama to /Applications..."
unzip -q "$TEMP_DIR/Ollama-darwin.zip" -d "$TEMP_DIR"
status "Verifying signature..."
if ! codesign --verify --deep --strict "$TEMP_DIR/Ollama.app" 2>/dev/null; then
error "Signature verification failed for Ollama.app"
fi
# Verify it's signed by Ollama team ID
if ! codesign -dvv "$TEMP_DIR/Ollama.app" 2>&1 | grep -q "TeamIdentifier=3MU9H2V9Y9"; then
error "Unexpected signer for Ollama.app"
fi
mv "$TEMP_DIR/Ollama.app" "/Applications/"
if [ ! -L "/usr/local/bin/ollama" ] || [ "$(readlink "/usr/local/bin/ollama")" != "/Applications/Ollama.app/Contents/Resources/ollama" ]; then
@@ -84,7 +95,7 @@ if [ "$OS" = "Darwin" ]; then
open -a Ollama --args hidden
fi
status "Install complete. You can now run 'ollama'."
status "Install complete. Run 'ollama' to get started."
exit 0
fi