diff --git a/install.sh b/install.sh index 7a2c180..05365fe 100644 --- a/install.sh +++ b/install.sh @@ -1,10 +1,14 @@ #!/bin/sh +if [[ $EUID -ne 0 ]]; then + whiptail --title "emq-TE1" --msgbox "Debe ejecutar este script como usuario ROOT" 0 50 + exit 0 +fi + echo Actualizando sistema apt-get update -y apt-get upgrade -y -apt-get install sed wavemon -y -apps=("git" "sudo" "curl" "wget" "sed") +apps=("git" "sudo" "curl" "wget" "sed" "wavemon") for app in "${apps[@]}" do