Update install_proxmenux.sh

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

View File

@ -104,26 +104,27 @@ 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"
# 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."
deactivate
if [ -n "$VIRTUAL_ENV" ]; then
deactivate
fi
exit 1
fi
deactivate
if [ -n "$VIRTUAL_ENV" ]; then
deactivate
fi
# Download necessary files =================================