mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update allmon3.sh
This commit is contained in:
parent
71282fc813
commit
988756d0d0
|
|
@ -9,7 +9,21 @@ if systemctl is-active "apache2" >/dev/null 2>&1; then
|
||||||
else
|
else
|
||||||
sapache=0
|
sapache=0
|
||||||
fi
|
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
|
samllm3=1
|
||||||
gpg --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
|
gpg --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
|
||||||
gpg --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
|
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
|
apt-get update
|
||||||
else
|
else
|
||||||
samllm3=0
|
samllm3=0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Install the dependencies
|
# Install the dependencies
|
||||||
if [ $samllm3 = 1 ]; then
|
if [ $samllm3 = 1 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue