mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-03 22:49:42 +00:00
add migration script
This commit is contained in:
parent
d442b46d7e
commit
5b9b43640b
7 changed files with 113 additions and 33 deletions
|
|
@ -3,9 +3,6 @@
|
|||
|
||||
DB_PATH="/mnt/docker/work/books/audiobookshelf/config/absdatabase.sqlite"
|
||||
|
||||
echo "=== settings (Path-related JSON values) ==="
|
||||
|
||||
# Extract and display server-settings JSON with key paths highlighted
|
||||
sqlite3 "$DB_PATH" "SELECT key, value FROM settings;" | while read -r key value; do
|
||||
echo "--- $key ---"
|
||||
echo "$value" | python3 -c "import sys, json; d=json.load(sys.stdin); [print(f' {k}: {v}') for k,v in d.items() if 'path' in k.lower() or 'url' in k.lower() or 'address' in k.lower()]" 2>/dev/null || echo " (No path-related keys found or JSON parse error)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue