Update install.sh

This commit is contained in:
Esteban Mackay Q. 2025-01-29 17:37:12 -05:00
parent 0acf4254d2
commit 6fa5f122c7
1 changed files with 12 additions and 13 deletions

View File

@ -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."