Update update-db.sh

This commit is contained in:
Thomas Büttner 2019-01-05 17:47:57 +01:00 committed by GitHub
parent a968913e9f
commit 0eafc3fd11

View File

@ -1,7 +1,7 @@
#!/bin/sh
db=${1:-/var/lib/jellyfin/data/library.db}
embypath=${2:-/var/lib/emby-server}
jellyfinpath=${3:-/var/lib/jellyfin}
db=${1:-${jellyfinpath}/data/library.db}
sqlite3 ${db} << SQL
UPDATE Chapters2
SET ImagePath=REPLACE(ImagePath, '${embypath}', '${jellyfinpath}');