Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/dash
- # Desenvolvido por Tchelo Noob
- atualizar='\033[1;32m'
- echo "$atualizar Atualizando repositório..."
- apt update && upgrade -y
- apt install -y wget
- clear
- echo
- echo " ¿Instalar Ngrok? [y/n]"
- read opcao
- case $opcao in
- y)
- echo
- echo "Descargando ngrok..."
- case `dpkg --print-architecture` in
- aarch64)
- architectureURL="arm64" ;;
- arm)
- architectureURL="arm" ;;
- armhf)
- architectureURL="armhf" ;;
- amd64)
- architectureURL="amd64" ;;
- i*86)
- architectureURL="i386" ;;
- x86_64)
- architectureURL="amd64" ;;
- *)
- echo "Arquitectura Desconocida"
- esac
- wget "https://github.com/tchelospy/NgrokTest/blob/master/ngrok-stable-linux-${architectureURL}.zip?raw=true" -O ngrok.zip
- unzip ngrok.zip
- cat ngrok > /data/data/com.termux/files/usr/bin/ngrok
- chmod 700 /data/data/com.termux/files/usr/bin/ngrok
- rm ngrok ngrok.zip
- clear
- echo
- echo " Ejemplo de uso (ngrok http 80)"
- ;;
- n)
- clear
- echo "Ngrok instalado :("
- echo
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement