mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-31 00:23:16 +02:00
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:
committed by
GitHub
parent
bd0529547c
commit
c1cff5ce2e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user