fix: validate cache data and suppress static file logging
This commit is contained in:
11
entrypoint.sh
Normal file
11
entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user