Update install_proxmenux.sh

This commit is contained in:
MacRimi 2025-02-03 23:17:31 +01:00 committed by GitHub
parent 67c934081b
commit 0f110e907c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,9 +103,19 @@ done
msg_info "Setting up the virtual environment for translations..."
if [ ! -d "$VENV_PATH" ]; then
python3 -m venv "$VENV_PATH"
# Verificar si el entorno virtual se creó correctamente
if [ ! -f "$VENV_PATH/bin/activate" ]; then
msg_error "Failed to create virtual environment. Please check your Python installation."
exit 1
fi
fi
# Activar el entorno virtual antes de instalar googletrans
source "$VENV_PATH/bin/activate"
if pip install --no-cache-dir googletrans==4.0.0-rc1; then
# Instalar googletrans con soporte para entornos gestionados (Debian PEP 668)
if pip install --break-system-packages --no-cache-dir googletrans==4.0.0-rc1; then
msg_ok "Virtual environment configured and googletrans installed."
else
msg_error "Failed to install googletrans. Please check your internet connection."
@ -114,9 +124,6 @@ if [ ! -d "$VENV_PATH" ]; then
fi
deactivate
else
msg_ok "Virtual environment already configured."
fi
# Download necessary files =================================