Update install.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-06-03 10:46:57 +00:00
parent 4039ae4d03
commit 4f6462b849
1 changed files with 7 additions and 10 deletions

View File

@ -1,23 +1,20 @@
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
whiptail --title "Python APRS WX" --msgbox "Debe ejecutar este script como usuario ROOT" 0 50
exit 0
fi
#!/bin/bash
apps=( "python3" )
apps=("git" "sudo" "curl" "wget" "sed" "wavemon")
for app in "${apps[@]}"
do
# Verificar apps
# Verificar la instalación de las aplicaciones
if ! dpkg -s "$app" >/dev/null 2>&1; then
# app no instalada
# Aplicación no instalada
sudo apt-get install -y "$app"
else
# app ya instalada
echo "$app ya instalada"
# Aplicación ya instalada
echo "$app ya está instalada"
fi
done
if [ -d "/opt/python-wx" ]
then
rm -r /opt/python-wx