From d044dea89e3228436b9cdc512efce3005406456a Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 22 Apr 2026 09:25:29 +0200 Subject: [PATCH] add --clear to uv venv in update_script() to prevent interactive prompt (#13926) --- ct/calibre-web.sh | 2 +- ct/homelable.sh | 2 +- ct/profilarr.sh | 2 +- ct/yamtrack.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/calibre-web.sh b/ct/calibre-web.sh index ffea110b5..0d168002a 100644 --- a/ct/calibre-web.sh +++ b/ct/calibre-web.sh @@ -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" diff --git a/ct/homelable.sh b/ct/homelable.sh index e12104e9a..eb5a67888 100644 --- a/ct/homelable.sh +++ b/ct/homelable.sh @@ -43,7 +43,7 @@ function update_script() { msg_info "Updating Python Dependencies" cd /opt/homelable/backend - $STD uv venv /opt/homelable/backend/.venv + $STD uv venv --clear /opt/homelable/backend/.venv $STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt msg_ok "Updated Python Dependencies" diff --git a/ct/profilarr.sh b/ct/profilarr.sh index 8d1ce0a96..7bf0582b2 100644 --- a/ct/profilarr.sh +++ b/ct/profilarr.sh @@ -44,7 +44,7 @@ function update_script() { msg_info "Installing Python Dependencies" cd /opt/profilarr/backend - $STD uv venv /opt/profilarr/backend/.venv + $STD uv venv --clear /opt/profilarr/backend/.venv sed 's/==/>=/g' requirements.txt >requirements-relaxed.txt $STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements-relaxed.txt rm -f requirements-relaxed.txt diff --git a/ct/yamtrack.sh b/ct/yamtrack.sh index 21e9fe34f..714125fea 100644 --- a/ct/yamtrack.sh +++ b/ct/yamtrack.sh @@ -43,7 +43,7 @@ function update_script() { msg_info "Installing Python Dependencies" cd /opt/yamtrack - $STD uv venv .venv + $STD uv venv --clear .venv $STD uv pip install --no-cache-dir -r requirements.txt msg_ok "Installed Python Dependencies"