Merge pull request #19 from outis1one/claude/cleanup-setup-webui-bCgPE

fix kiwix crash-loop when no ZIM files present
This commit is contained in:
Outis
2026-03-21 14:26:51 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -938,7 +938,7 @@ ${OLLAMA_VOLUME_LINE}
volumes:
- $KIWIX_DIR:/data
entrypoint: ["sh", "-c"]
command: ["exec kiwix-serve $(ls /data/*.zim 2>/dev/null | tr '\\n' ' ')"]
command: ["ls /data/*.zim >/dev/null 2>&1 && exec kiwix-serve /data/*.zim || { echo 'No ZIM files in /data yet - sleeping. Add .zim files and restart kiwix.'; exec sleep infinity; }"]
# ── Gitea — Self-hosted Git ─────────────────────────────────────────────────
gitea:
+1 -1
View File
@@ -625,7 +625,7 @@ services:
ports: ["0.0.0.0:8181:8080"]
volumes: [$BASE/kiwix:/data]
entrypoint: ["sh", "-c"]
command: ["exec kiwix-serve $(ls /data/*.zim 2>/dev/null | tr '\\n' ' ')"]
command: ["ls /data/*.zim >/dev/null 2>&1 && exec kiwix-serve /data/*.zim || { echo 'No ZIM files in /data yet - sleeping. Add .zim files and restart kiwix.'; exec sleep infinity; }"]
gitea:
image: gitea/gitea:latest