mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update allmon3.sh
This commit is contained in:
parent
1742f6ab72
commit
b69ea85338
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue