install.sh: 6 Verbesserungen + 9 Pitfall-Prüfungen (Don)

1. .env-Template: ARCHIVAR_EMBEDDING_BASE_URL ergänzt
2. Ollama Service-Start + Modell-Pull gesichert
3. numpy/faiss Import-Test nach Installation
4. sys.path.insert für archivar-Imports in __init__.py
5. LLM_CONFIG Klarstellung: LLM=Cloud, Embeddings=lokal
6. loginctl enable-linger Check (KRITISCH — ohne Linger Crash-Loop)

Pitfalls P1-P9 dokumentiert und geprüft in install.sh
Idempotent — mehrfach ausführbar ohne Fehler
This commit is contained in:
Bernd (Hermes)
2026-07-14 14:58:28 +02:00
parent 1c603d627a
commit a4f1bd6443
3 changed files with 143 additions and 8 deletions
+6
View File
@@ -8,6 +8,12 @@ and REST API (outgoing replies).
import logging
import os
import sys
# P3 Fix: Ensure archivar submodule is importable as top-level module.
# Without this, absolute imports like 'from archivar.config import ...'
# fail when the plugin is loaded from site-packages/plugins/rocketchat/.
sys.path.insert(0, os.path.dirname(__file__))
logger = logging.getLogger(__name__)