14 lines
422 B
Bash
Executable File
14 lines
422 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -uo pipefail
|
|
|
|
DB_DIR="/mnt/recovery/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases"
|
|
SQLITE="/usr/lib/plexmediaserver/Plex SQLite"
|
|
|
|
for db in \
|
|
"$DB_DIR/com.plexapp.plugins.library.db-2026-08-20" \
|
|
"$DB_DIR/com.plexapp.plugins.library.blobs.db-2026-08-20"
|
|
do
|
|
echo "Checking $(basename "$db")"
|
|
"$SQLITE" -readonly "$db" "PRAGMA integrity_check;"
|
|
done
|