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 " \