fix: add --clear to uv venv in update_script() to prevent interactive prompt

uv venv asks interactively when .venv already exists:
  ? A virtual environment already exists at .venv. Do you want to replace it? [y/n]

This hangs update scripts. Using --clear avoids the prompt.
Not needed in install scripts since .venv does not exist there yet.

Affected: calibre-web, homelable, profilarr, yamtrack
This commit is contained in:
CanbiZ (MickLesk)
2026-04-22 06:46:33 +02:00
parent 14655ff6a4
commit c28dcdca46
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ function update_script() {
msg_info "Installing Dependencies"
cd /opt/calibre-web
$STD uv venv
$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
msg_ok "Installed Dependencies"