Fix calibre sync to import books as correct user

Prevents root-owned files in the library volume that
calibre-web can't write to.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Louis Simoneau
2026-04-10 21:11:53 +10:00
parent bcdc0c6cef
commit 5197f92685

View File

@@ -544,7 +544,7 @@
docker compose exec -T kobodl kobodl --config /home/config/kobodl.json book get --get-all --output-dir /downloads
# Import any new EPUBs into Calibre library
docker compose exec -T calibre-web sh -c '
docker compose exec -T --user abc calibre-web sh -c '
for f in /downloads/*.epub; do
[ -f "$f" ] || continue
calibredb add "$f" --with-library /library/ && rm "$f"