fix: graceful fallback when no zim archives present

This commit is contained in:
v 2026-09-27 18:07:28 +03:00
parent b69adc2f8b
commit 113e53a2ad

View file

@ -152,7 +152,13 @@ spec:
command:
- /bin/sh
- -c
- "kiwix-serve --port 8080 /data/*.zim"
- |
if ls /data/*.zim 1> /dev/null 2>&1; then
exec kiwix-serve --port 8080 /data/*.zim
else
echo "No .zim archives found in /data. Waiting for files..."
sleep infinity
fi
ports:
- containerPort: 8080
volumeMounts: