From 4f6462b84961865424f3c72eba3ed609f03b6e0c Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sat, 3 Jun 2023 10:46:57 +0000 Subject: [PATCH] Update install.sh --- install.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 7bb1e17..ef260c8 100644 --- a/install.sh +++ b/install.sh @@ -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