Update allmon3.sh

This commit is contained in:
Esteban Mackay Q 2024-01-02 15:20:35 -05:00
parent 71282fc813
commit 988756d0d0
1 changed files with 16 additions and 1 deletions

View File

@ -9,7 +9,21 @@ if systemctl is-active "apache2" >/dev/null 2>&1; then
else
sapache=0
fi
if [ ! -d "/etc/allmon3" ]; then
if [ $VERSION = 10 ]; then
if [ ! -d "/etc/allmon3" ]; then
samllm3=1
gpg --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
gpg --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
gpg --export 04EE7237B7D453EC | 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
apt update -y
else
samllm3=0
fi
fi
if [ $VERSION = 11 ]; then
if [ ! -d "/etc/allmon3" ]; then
samllm3=1
gpg --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
gpg --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
@ -19,6 +33,7 @@ echo "deb https://deb.debian.org/debian bullseye-backports main" > /etc/apt/sour
apt-get update
else
samllm3=0
fi
fi
# Install the dependencies
if [ $samllm3 = 1 ]; then