mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update ysfreflector.sh
This commit is contained in:
parent
6ccaf2accd
commit
5e92752fb5
|
|
@ -2,9 +2,22 @@
|
|||
# YSF-Reflector
|
||||
#########################################################################################################################
|
||||
|
||||
sudo apt install python3 python3-pip -y
|
||||
sudo pip install aprslib
|
||||
sudo pip install tinydb
|
||||
apps=("python3" "python3-pip")
|
||||
|
||||
for app in "${apps[@]}"
|
||||
do
|
||||
# Verificar apps
|
||||
if ! dpkg -s "$app" >/dev/null 2>&1; then
|
||||
# app no instalada
|
||||
sudo apt-get install -y "$app"
|
||||
else
|
||||
# app ya instalada
|
||||
echo "$app ya instalada"
|
||||
fi
|
||||
done
|
||||
|
||||
pip3 install --force-reinstall aprslib
|
||||
pip3 install --force-reinstall tinydb
|
||||
|
||||
if [ -d "/var/log/mmdvm" ]
|
||||
then
|
||||
|
|
@ -59,9 +72,23 @@ EOF
|
|||
# YSF-Reflector-Dashboard
|
||||
#########################################################################################################################
|
||||
|
||||
sudo apt install python3-websockets
|
||||
sudo pip3 install ansi2html
|
||||
sudo apt install python3-psutil
|
||||
apps=("python3-websockets" "python3-psutil")
|
||||
|
||||
for app in "${apps[@]}"
|
||||
do
|
||||
# Verificar apps
|
||||
if ! dpkg -s "$app" >/dev/null 2>&1; then
|
||||
# app no instalada
|
||||
sudo apt-get install -y "$app"
|
||||
else
|
||||
# app ya instalada
|
||||
echo "$app ya instalada"
|
||||
fi
|
||||
done
|
||||
|
||||
if ! command -v ansi2html &> /dev/null; then
|
||||
pip3 install ansi2html
|
||||
fi
|
||||
|
||||
cd /opt/
|
||||
git clone --recurse-submodules -j8 https://github.com/dg9vh/WSYSFDash
|
||||
|
|
|
|||
Loading…
Reference in New Issue