-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathngrok.sh
More file actions
executable file
·27 lines (20 loc) · 857 Bytes
/
Copy pathngrok.sh
File metadata and controls
executable file
·27 lines (20 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
if [[ $EUID -eq 0 ]]; then
clear
echo " !!! ATENÇÃO !!!"
echo " NÃO execute este script como root!"
echo " Presione qualquer tecla para sair..."
read -s -n 1 -p " "
exit
fi
# ----------------------------- VARIÁVEIS ----------------------------- #
read -p "Informe seu token de autenticação :" KEY_TOKEN
# KEY_TOKEN="seuAuthToken"
# Instalaçao NGROK
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
## Add authtoken
ngrok config add-authtoken $KEY_TOKEN
echo " "
echo "Atualizações concluídas"
read -s -n 1 -p "Pressione Enter para sair..."
exit