mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-29 13:36:00 +00:00
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:
+1
-1
@@ -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 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 --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 -r requirements.txt
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Python Dependencies"
|
msg_info "Updating Python Dependencies"
|
||||||
cd /opt/homelable/backend
|
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
|
$STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt
|
||||||
msg_ok "Updated Python Dependencies"
|
msg_ok "Updated Python Dependencies"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -44,7 +44,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Installing Python Dependencies"
|
msg_info "Installing Python Dependencies"
|
||||||
cd /opt/profilarr/backend
|
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
|
sed 's/==/>=/g' requirements.txt >requirements-relaxed.txt
|
||||||
$STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements-relaxed.txt
|
$STD uv pip install --python /opt/profilarr/backend/.venv/bin/python -r requirements-relaxed.txt
|
||||||
rm -f requirements-relaxed.txt
|
rm -f requirements-relaxed.txt
|
||||||
|
|||||||
+1
-1
@@ -43,7 +43,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Installing Python Dependencies"
|
msg_info "Installing Python Dependencies"
|
||||||
cd /opt/yamtrack
|
cd /opt/yamtrack
|
||||||
$STD uv venv .venv
|
$STD uv venv --clear .venv
|
||||||
$STD uv pip install --no-cache-dir -r requirements.txt
|
$STD uv pip install --no-cache-dir -r requirements.txt
|
||||||
msg_ok "Installed Python Dependencies"
|
msg_ok "Installed Python Dependencies"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user