Update ysfreflector.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-06-03 08:04:40 +00:00
parent 6ccaf2accd
commit 5e92752fb5
1 changed files with 33 additions and 6 deletions

View File

@ -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