wrolpi/docker/zim/entrypoint.sh
Roland 80cc758e6c
zim: drop --address 0.0.0.0 in the Docker entrypoint so kiwix-serve works on trixie
The zim Docker image is FROM debian:13, whose kiwix-tools 3.7.0 rejects the
literal "--address 0.0.0.0" ("IP address is not available on this system"),
so the container failed to start after loading the library. Omit --address;
kiwix-serve then defaults to binding all interfaces.

This mirrors 9e92732a, which applied the same fix to the systemd
start_kiwix_serve.sh path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-20 13:21:08 -06:00

10 lines
411 B
Bash
Executable file

#! /usr/bin/env bash
rm -f /library.xml
# Find all Zim files and import them.
find /media/wrolpi -iname '*.zim' -exec /import_zim.sh {} \;
# Bind all interfaces by omitting --address: kiwix-serve defaults to all
# interfaces, and trixie's kiwix-tools 3.7.0 rejects the literal
# "--address 0.0.0.0" ("IP address is not available on this system").
kiwix-serve --monitorLibrary --library /library.xml --port 80