fix: validate cache data and suppress static file logging

This commit is contained in:
2026-04-22 20:39:47 +02:00
parent bfb50aa76e
commit c860a1a70a
4 changed files with 45 additions and 5 deletions

11
entrypoint.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -e
# Clear potentially corrupted Jikan cache entries on each deploy
DB_FILE="${DATABASE_FILE:-/app/data/mal.db}"
if [ -f "$DB_FILE" ]; then
sqlite3 "$DB_FILE" "DELETE FROM jikan_cache WHERE key LIKE 'top:%';" 2>/dev/null || true
fi
# Start the server
exec ./main_server