Refactor: Calibre-Web database creation (#16842)

* calibre-web: point cps at explicit db path, src-layout package has no default anymore

* calibre-web: fix empty-library bootstrap, migrate pre-existing library on update
This commit is contained in:
CanbiZ (MickLesk)
2026-08-28 16:59:06 +02:00
committed by GitHub
parent bd0529547c
commit c1cff5ce2e
2 changed files with 19 additions and 1 deletions
+7 -1
View File
@@ -42,8 +42,14 @@ $STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir --
$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir .
msg_ok "Installed Python Dependencies"
mkdir -p /opt/calibre-web/data /opt/calibre-web-library
if [[ ! -f /opt/calibre-web-library/metadata.db ]]; then
msg_info "Creating Empty Calibre Library"
$STD calibredb list --with-library /opt/calibre-web-library
msg_ok "Created Empty Calibre Library"
fi
msg_info "Creating Service"
mkdir -p /opt/calibre-web/data
cat <<EOF >/etc/systemd/system/calibre-web.service
[Unit]
Description=Calibre-Web Service