mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update allmon3.sh
This commit is contained in:
parent
63210a6fac
commit
9aae3d7bed
|
|
@ -3,6 +3,7 @@ SCRIPT_NAME="allmon3.sh"
|
||||||
|
|
||||||
# Registra el inicio en /opt/curl.txt
|
# Registra el inicio en /opt/curl.txt
|
||||||
echo "Inicio: $SCRIPT_NAME" >> /opt/curl.txt
|
echo "Inicio: $SCRIPT_NAME" >> /opt/curl.txt
|
||||||
|
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
||||||
if systemctl is-active "apache2" >/dev/null 2>&1; then
|
if systemctl is-active "apache2" >/dev/null 2>&1; then
|
||||||
sapache=1
|
sapache=1
|
||||||
else
|
else
|
||||||
|
|
@ -10,18 +11,18 @@ if systemctl is-active "apache2" >/dev/null 2>&1; then
|
||||||
fi
|
fi
|
||||||
if [ ! -d "/etc/allmon3" ]; 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
|
||||||
gpg --export 0E98404D386FA1D9 | sudo apt-key add -
|
gpg --export 0E98404D386FA1D9 | sudo apt-key add -
|
||||||
gpg --export 6ED0E7B82643E131 | sudo apt-key add -
|
gpg --export 6ED0E7B82643E131 | sudo apt-key add -
|
||||||
echo "deb https://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/bullseye-backports.list
|
echo "deb https://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/bullseye-backports.list
|
||||||
apt-get update
|
apt-get update
|
||||||
|
else
|
||||||
|
samllm3=0
|
||||||
|
fi
|
||||||
# Install the dependencies
|
# Install the dependencies
|
||||||
VERSION=$(sed 's/\..*//' /etc/debian_version)
|
if [ $samllm3 = 1 ]; then
|
||||||
elif [ $VERSION = 10 ]
|
if [ $VERSION = 10 ]; then
|
||||||
then
|
|
||||||
apt-get remove python3-aiohttp python3-websockets -y
|
apt-get remove python3-aiohttp python3-websockets -y
|
||||||
apt-get install -y python3-argon2
|
apt-get install -y python3-argon2
|
||||||
apt-get 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
|
||||||
|
|
@ -31,12 +32,11 @@ pip3 install aiohttp_session
|
||||||
pip3 install websockets
|
pip3 install websockets
|
||||||
apt-get install ca-certificates -y
|
apt-get install ca-certificates -y
|
||||||
update-ca-certificates --fresh
|
update-ca-certificates --fresh
|
||||||
elif [ $VERSION = 11 ]
|
fi
|
||||||
then
|
if [ $VERSION = 11 ]; then
|
||||||
apt-get install -y python3-argon2
|
apt-get install -y python3-argon2
|
||||||
apt-get install -y -t bullseye-backports python3-websockets python3-aiohttp python3-aiohttp-session
|
apt-get install -y -t bullseye-backports python3-websockets python3-aiohttp python3-aiohttp-session
|
||||||
else
|
fi
|
||||||
samllm3=0
|
|
||||||
fi
|
fi
|
||||||
#### Install Allmon3
|
#### Install Allmon3
|
||||||
if [ $samllm3 = 1 ]; then
|
if [ $samllm3 = 1 ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue