calibre-web: use uv sync (native) instead of pip-compatible install

This commit is contained in:
mikolaj92 2026-02-10 20:33:47 +01:00
parent b518881996
commit 2b7eed2630
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ function update_script() {
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
cd /opt/calibre-web cd /opt/calibre-web
$STD uv pip install --system --no-cache-dir -r requirements.txt $STD uv sync --no-dev
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Restoring Data" msg_info "Restoring Data"

View File

@ -35,7 +35,7 @@ setup_uv
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
cd /opt/calibre-web cd /opt/calibre-web
$STD uv pip install --system --no-cache-dir -r requirements.txt $STD uv sync --no-dev
msg_ok "Installed Python Dependencies" msg_ok "Installed Python Dependencies"
mkdir -p /opt/calibre-web/data mkdir -p /opt/calibre-web/data
@ -50,7 +50,7 @@ After=network.target
Type=simple Type=simple
User=root User=root
WorkingDirectory=/opt/calibre-web WorkingDirectory=/opt/calibre-web
ExecStart=/usr/bin/python3 /opt/calibre-web/cps.py ExecStart=/opt/calibre-web/.venv/bin/python /opt/calibre-web/cps.py
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5