From 6fa5f122c75a06a16cdcbab74676d02d7eb134e6 Mon Sep 17 00:00:00 2001 From: "Esteban Mackay Q." Date: Wed, 29 Jan 2025 17:37:12 -0500 Subject: [PATCH] Update install.sh --- install.sh | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/install.sh b/install.sh index a44df95..3dc1633 100644 --- a/install.sh +++ b/install.sh @@ -5,16 +5,6 @@ if [ $EUID -ne 0 ]; then exit 1 fi -# Detectar el sistema operativo y su versión -if [ -f "/etc/os-release" ]; then - . /etc/os-release - OS=$ID - VERSION=$VERSION_ID -else - echo "No se pudo detectar el sistema operativo." - exit 1 -fi - # Actualizar la lista de paquetes una vez al principio apt-get update @@ -89,13 +79,22 @@ source $HOME/.cargo/env rustup install 1.72.0 rustup default 1.72.0 -sudo pip3 uninstall -y twisted --quiet -sudo pip3 install twisted --quiet +# Detectar el sistema operativo y su versión +if [ -f "/etc/os-release" ]; then + . /etc/os-release + OS=$ID + VERSION=$VERSION_ID +else + echo "No se pudo detectar el sistema operativo." + exit 1 +fi # Instalación de módulos pip según el sistema operativo if [ "$OS" == "debian" ] && [ "$VERSION" == "12" ]; then /usr/bin/python3 -m pip install --break-system-packages pyOpenSSL autobahn jinja2 dmr-utils3 ansi2html aprslib tinydb mysqlclient setproctitle pynmea2 maidenhead Twisted spyne Pyro5 bitstring bitarray dmr_utils3 configparser resettabletimer setuptools wheel MarkupSafe service-identity + sudo pip3 uninstall -y twisted --quiet + sudo pip3 install twisted --quiet else - /usr/bin/python3 -m pip install --upgrade pyOpenSSL autobahn jinja2 dmr-utils3 ansi2html aprslib tinydb mysqlclient setproctitle pynmea2 maidenhead Twisted spyne Pyro5 bitstring bitarray dmr_utils3 configparser resettabletimer setuptools wheel MarkupSafe service-identity + /usr/bin/python3 -m pip install --upgrade twisted pyOpenSSL autobahn jinja2 dmr-utils3 ansi2html aprslib tinydb mysqlclient setproctitle pynmea2 maidenhead Twisted spyne Pyro5 bitstring bitarray dmr_utils3 configparser resettabletimer setuptools wheel MarkupSafe service-identity fi echo "Instalación completa."