|
|
|
|
@ -5,16 +5,6 @@ if [ $EUID -ne 0 ]; then
|
|
|
|
|
exit 0
|
|
|
|
|
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,15 +79,24 @@ source $HOME/.cargo/env
|
|
|
|
|
rustup install 1.72.0
|
|
|
|
|
rustup default 1.72.0
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
sudo pip3 uninstall -y twisted --quiet
|
|
|
|
|
sudo pip3 install twisted --quiet
|
|
|
|
|
echo "Instalación completa."
|
|
|
|
|
|
|
|
|
|
# Configuración adicional (timezone, cron, etc.)
|
|
|
|
|
|