fix: graceful fallback when no zim archives present
This commit is contained in:
parent
b69adc2f8b
commit
113e53a2ad
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue