changed file paths

This commit is contained in:
2026-05-04 09:15:19 -04:00
parent 842c50bb6a
commit ba7495f4e4
2 changed files with 7 additions and 1 deletions

View File

@@ -54,7 +54,9 @@ fi
echo "Ensuring python3-venv and pip are available..."
apt-get install -y python3-venv python3-pip
if [ ! -d "$INSTALL_DIR/venv" ]; then
# Check for pip specifically — a previous failed run may have left an incomplete venv
if [ ! -f "$INSTALL_DIR/venv/bin/pip" ]; then
rm -rf "$INSTALL_DIR/venv"
python3 -m venv "$INSTALL_DIR/venv" || {
echo "ERROR: 'python3 -m venv' failed. Try: apt-get install python3-venv"
exit 1