#------------------------------------------------------------- # author: Gabriel Moura Cantanhede - gabemocan@gmail.com # date: 25-12-2022 #------------------------------------------------------------- set -e # Checa se é root if [ $UID -ne 0 ]; then echo "Usuário não é root! Encerrando a instalação..." exit 1 fi # Atualiza o apt e baixa as deps apt update -qq >/dev/null apt install -y -qq --no-install-recommends \ git \ whois \ whiptail \ >/dev/null # Clona o repo e inicia o procesos de deploy git clone https://github.com/mwsolucoes/deploy cd deploy do_install() { bash deploy.sh } # wrapped up in a function so that we have some protection against only getting # half the file during "curl | sh" do_install