mirror of https://gitlab.com/hp3icc/emq-TE1.git
parent
cf8c6e3d27
commit
b11d7c94af
|
|
@ -5,15 +5,15 @@ if [[ $EUID -ne 0 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# Actualizar la lista de paquetes una vez al principio
|
# Actualizar la lista de paquetes una vez al principio
|
||||||
apt update
|
apt-get update
|
||||||
|
|
||||||
# Ejecutar actualización completa
|
# Ejecutar actualización completa
|
||||||
DEBIAN_FRONTEND=noninteractive apt full-upgrade -y
|
DEBIAN_FRONTEND=noninteractive apt-get full-upgrade -y
|
||||||
|
|
||||||
# Verificar si es necesario ejecutar autoremove
|
# Verificar si es necesario ejecutar autoremove
|
||||||
if sudo apt-get --dry-run autoremove | grep -q "The following packages will be REMOVED:"; then
|
if apt-get --dry-run autoremove | grep -q "The following packages will be REMOVED:"; then
|
||||||
echo "Ejecutando autoremove..."
|
echo "Ejecutando autoremove..."
|
||||||
sudo apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
else
|
else
|
||||||
echo "No es necesario ejecutar autoremove."
|
echo "No es necesario ejecutar autoremove."
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ gpg --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
|
||||||
gpg --export 04EE7237B7D453EC | sudo apt-key add -
|
gpg --export 04EE7237B7D453EC | sudo apt-key add -
|
||||||
gpg --export 648ACFD622F3D138 | sudo apt-key add -
|
gpg --export 648ACFD622F3D138 | sudo apt-key add -
|
||||||
echo "deb https://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backports.list
|
echo "deb https://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backports.list
|
||||||
apt update -y
|
apt-get update -y
|
||||||
else
|
else
|
||||||
samllm3=0
|
samllm3=0
|
||||||
fi
|
fi
|
||||||
|
|
@ -41,7 +41,7 @@ if [ $VERSION = 12 ]; then
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://repo.allstarlink.org/public/asl-apt-repos.deb12_all.deb
|
wget https://repo.allstarlink.org/public/asl-apt-repos.deb12_all.deb
|
||||||
sudo dpkg -i asl-apt-repos.deb12_all.deb
|
sudo dpkg -i asl-apt-repos.deb12_all.deb
|
||||||
sudo apt update
|
sudo apt-get update
|
||||||
else
|
else
|
||||||
samllm3=0
|
samllm3=0
|
||||||
fi
|
fi
|
||||||
|
|
@ -49,8 +49,8 @@ fi
|
||||||
# Install the dependencies
|
# Install the dependencies
|
||||||
if [ $VERSION = 10 ]; then
|
if [ $VERSION = 10 ]; then
|
||||||
apt-get remove python3-aiohttp python3-websockets -y
|
apt-get remove python3-aiohttp python3-websockets -y
|
||||||
apt install -y python3-argon2
|
apt-get install -y python3-argon2
|
||||||
apt install -y -t buster-backports python3-async-timeout python3-attr python3-multidict python3-yarl
|
apt-get install -y -t buster-backports python3-async-timeout python3-attr python3-multidict python3-yarl
|
||||||
apt-get --fix-broken install -y
|
apt-get --fix-broken install -y
|
||||||
pip3 install aiohttp
|
pip3 install aiohttp
|
||||||
pip3 install aiohttp_session
|
pip3 install aiohttp_session
|
||||||
|
|
@ -76,7 +76,7 @@ if [ $VERSION = 11 ]; then
|
||||||
dpkg -i allmon3_1.2.0-1.bullseye_all.deb
|
dpkg -i allmon3_1.2.0-1.bullseye_all.deb
|
||||||
fi
|
fi
|
||||||
if [ $VERSION = 12 ]; then
|
if [ $VERSION = 12 ]; then
|
||||||
apt install -y allmon3
|
apt-get install -y allmon3
|
||||||
fi
|
fi
|
||||||
if [ -f "/usr/share/allmon3/index.html" ]; then
|
if [ -f "/usr/share/allmon3/index.html" ]; then
|
||||||
variable2=$(date +'%Y' | tail -c 5)
|
variable2=$(date +'%Y' | tail -c 5)
|
||||||
|
|
|
||||||
|
|
@ -42,11 +42,11 @@ if [ -f "/etc/os-release" ]; then
|
||||||
|
|
||||||
if [ "$VERSION_ID" == "10" ]; then
|
if [ "$VERSION_ID" == "10" ]; then
|
||||||
apt update -y
|
apt update -y
|
||||||
apt upgrade -y
|
DEBIAN_FRONTEND=noninteractive apt upgrade -y
|
||||||
apt --fix-broken install -y
|
apt --fix-broken install -y
|
||||||
else
|
else
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get upgrade -y
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# ASTERISK install
|
# ASTERISK install
|
||||||
|
|
@ -59,8 +59,8 @@ if [ ! -d "/etc/asterisk" ]; then
|
||||||
cd /tmp
|
cd /tmp
|
||||||
wget https://repo.allstarlink.org/public/asl-apt-repos.deb12_all.deb
|
wget https://repo.allstarlink.org/public/asl-apt-repos.deb12_all.deb
|
||||||
sudo dpkg -i asl-apt-repos.deb12_all.deb
|
sudo dpkg -i asl-apt-repos.deb12_all.deb
|
||||||
sudo apt update
|
sudo apt-get update
|
||||||
apt install asl3 -y
|
apt-get install asl3 -y
|
||||||
aslr=1
|
aslr=1
|
||||||
elif [[ "$VERSION_ID" == "10" ]]; then
|
elif [[ "$VERSION_ID" == "10" ]]; then
|
||||||
# Si es Debian 10, instalar AllStar
|
# Si es Debian 10, instalar AllStar
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ echo "Installing required packages..."
|
||||||
echo "Install Docker Community Edition..."
|
echo "Install Docker Community Edition..."
|
||||||
|
|
||||||
# Eliminar versiones antiguas de Docker si las hay, ignorando errores si no existen
|
# Eliminar versiones antiguas de Docker si las hay, ignorando errores si no existen
|
||||||
apt -y remove docker docker-engine docker.io containerd runc --ignore-missing
|
apt-get -y remove docker docker-engine docker.io containerd runc --ignore-missing
|
||||||
|
|
||||||
# Actualizar el índice de paquetes
|
# Actualizar el índice de paquetes
|
||||||
#apt update
|
#apt update
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ if systemd-detect-virt --quiet; then
|
||||||
else
|
else
|
||||||
# Instalar NetworkManager si no está instalado
|
# Instalar NetworkManager si no está instalado
|
||||||
if ! dpkg -l | grep -q "network-manager"; then
|
if ! dpkg -l | grep -q "network-manager"; then
|
||||||
sudo apt update -y && sudo apt install -y network-manager
|
sudo apt-get update -y && sudo apt-get install -y network-manager
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Configurar NetworkManager para manejar las interfaces
|
# Configurar NetworkManager para manejar las interfaces
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ XLX-CALLSIGN:
|
||||||
|
|
||||||
EOFX
|
EOFX
|
||||||
fi
|
fi
|
||||||
apt update
|
apt-get update
|
||||||
#
|
#
|
||||||
WHO=$(whoami)
|
WHO=$(whoami)
|
||||||
if [ "$WHO" != "root" ]
|
if [ "$WHO" != "root" ]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue