Container: Vault-Prüfung ohne festen Dateiaufbau (wie systemd)
Deploy mindnet DEV (Container) / deploy (push) Successful in 50s

Der Preflight verlangte _system/dictionary/edge_vocabulary.md, die es nur
im NAS-Vault gibt. Der Dev-Vault vault_master ist anders aufgebaut, systemd
prüft nichts davon. Jetzt: Vault muss lesbar und nicht leer sein; eine
bestimmte Datei nur noch optional über MINDNET_VAULT_SENTINEL. Default für
MINDNET_VAULT_ROOT wie in app/config.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-28 21:47:24 +01:00
1 parent 6a2ab522fc
commit 347ca50e71
4 files changed
+47 -19

No files matched your search

+8 -4
View File
@@ -28,10 +28,14 @@ def main(mode: str) -> int:
print(f"health: {mode} nicht erreichbar ({type(e).__name__})")
return 1
if mode == "api" and os.getenv("MINDNET_VAULT_REQUIRED", "true").lower() == "true":
root = Path(os.getenv("MINDNET_VAULT_ROOT", ""))
sentinel = root / os.getenv("MINDNET_VAULT_SENTINEL", "_system/dictionary/edge_vocabulary.md")
if not sentinel.is_file():
print(f"health: Vault-Sentinel fehlt ({sentinel})")
root = Path(os.getenv("MINDNET_VAULT_ROOT") or "./vault_master")
sentinel_name = os.getenv("MINDNET_VAULT_SENTINEL", "").strip()
try:
ok = (root / sentinel_name).is_file() if sentinel_name else next(root.iterdir(), None) is not None
except OSError:
ok = False
if not ok:
print(f"health: Vault leer oder nicht lesbar ({root})")
return 1
return 0