From 16ee4db74547fd45865aefb1b8751e2982d387e1 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sat, 3 Jun 2023 09:31:40 +0000 Subject: [PATCH] Update install.sh --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4d56bd8..091e4b1 100644 --- a/install.sh +++ b/install.sh @@ -1,5 +1,8 @@ #!/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 apps=("python3") for app in "${apps[@]}" @@ -130,6 +133,11 @@ EOF ########################### sudo cat > /bin/menu-py-wx <<- "EOF" #!/bin/bash +if [[ $EUID -ne 0 ]]; then + whiptail --title "sudo su" --msgbox "requiere ser usuario root , escriba (sudo su) antes de entrar a menu / requires root user, type (sudo su) before entering menu" 0 50 + exit 0 +fi + while : ; do choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Python-WX" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion:" 23 56 15 \ 1 " Editar WX-1 " \