From 7317baddc15578d1310d2fbe86392f4a051631ac Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 14 Aug 2026 22:10:34 +0200 Subject: [PATCH] calibre-web: install as package for 0.6.27's src-layout restructure (#16480) --- ct/calibre-web.sh | 5 ++++- install/calibre-web-install.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index 567141c02..91ed933d5 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -45,9 +45,12 @@ function update_script() { cd /opt/calibre-web $STD uv venv --clear /opt/calibre-web/.venv $STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir --upgrade pip setuptools wheel - $STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir -r requirements.txt + $STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir . msg_ok "Installed Dependencies" + sed -i 's|^ExecStart=.*|ExecStart=/opt/calibre-web/.venv/bin/cps|' /etc/systemd/system/calibre-web.service + $STD systemctl daemon-reload + restore_backup msg_info "Starting Service" diff --git a/install/calibre-web-install.sh b/install/calibre-web-install.sh index 57f6b03d6..04bff5ed8 100644 --- a/install/calibre-web-install.sh +++ b/install/calibre-web-install.sh @@ -39,7 +39,7 @@ msg_info "Installing Python Dependencies" cd /opt/calibre-web $STD uv venv $STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir --upgrade pip setuptools wheel -$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir -r requirements.txt +$STD uv pip install --python /opt/calibre-web/.venv/bin/python --no-cache-dir . msg_ok "Installed Python Dependencies" msg_info "Creating Service" @@ -54,7 +54,7 @@ Type=simple User=root Environment="QTWEBENGINE_CHROMIUM_FLAGS=--no-sandbox" WorkingDirectory=/opt/calibre-web -ExecStart=/opt/calibre-web/.venv/bin/python /opt/calibre-web/cps.py +ExecStart=/opt/calibre-web/.venv/bin/cps Restart=on-failure RestartSec=5