diff --git a/install.sh b/install.sh index 1f3823f..c42a4a2 100755 --- a/install.sh +++ b/install.sh @@ -195,6 +195,11 @@ case "$AI_CHOICE" in info "Installing Ollama..." if ! command -v ollama &>/dev/null; then sudo_if sh -c "$(curl -fsSL https://ollama.com/install.sh)" 2>&1 | tail -5 + # Fix permissions: the installer may leave /usr/share/ollama owned by root + # when run via sudo, but the ollama service runs as the ollama user + if id -u ollama &>/dev/null; then + sudo_if chown -R ollama:ollama /usr/share/ollama 2>/dev/null || true + fi else info "Ollama already installed" fi