Update allmon3.sh

This commit is contained in:
Script Proyect by HP3ICC 2024-09-01 03:04:48 +00:00
parent 1742f6ab72
commit b69ea85338
1 changed files with 14 additions and 0 deletions

View File

@ -34,6 +34,17 @@ apt-get update
else
samllm3=0
fi
fi
if [ $VERSION = 12 ]; then
if [ ! -d "/etc/allmon3" ]; then
samllm3=1
cd /tmp
wget https://repo.allstarlink.org/public/asl-apt-repos.deb12_all.deb
sudo dpkg -i asl-apt-repos.deb12_all.deb
sudo apt update
else
samllm3=0
fi
fi
# Install the dependencies
if [ $VERSION = 10 ]; then
@ -64,6 +75,9 @@ if [ $VERSION = 11 ]; then
# Instala el paquete
dpkg -i allmon3_1.2.0-1.bullseye_all.deb
fi
if [ $VERSION = 12 ]; then
apt install -y allmon3
fi
if [ -f "/usr/share/allmon3/index.html" ]; then
variable2=$(date +'%Y' | tail -c 5)
allmv=$(grep -oP '<span style="color:red">\K[^<]+' /usr/share/allmon3/index.html)