Advertisement
Soy_Estudiante

Untitled

May 29th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #!/bin/dash
  2. # Desenvolvido por Tchelo Noob
  3. atualizar='\033[1;32m'
  4. echo "$atualizar Atualizando repositório..."
  5. apt update && upgrade -y
  6. apt install -y wget
  7. clear
  8. echo
  9. echo " ¿Instalar Ngrok? [y/n]"
  10. read opcao
  11. case $opcao in
  12. y)
  13. echo
  14. echo "Descargando ngrok..."
  15. case `dpkg --print-architecture` in
  16. aarch64)
  17. architectureURL="arm64" ;;
  18. arm)
  19. architectureURL="arm" ;;
  20. armhf)
  21. architectureURL="armhf" ;;
  22. amd64)
  23. architectureURL="amd64" ;;
  24. i*86)
  25. architectureURL="i386" ;;
  26. x86_64)
  27. architectureURL="amd64" ;;
  28. *)
  29. echo "Arquitectura Desconocida"
  30. esac
  31.  
  32. wget "https://github.com/tchelospy/NgrokTest/blob/master/ngrok-stable-linux-${architectureURL}.zip?raw=true" -O ngrok.zip
  33. unzip ngrok.zip
  34. cat ngrok > /data/data/com.termux/files/usr/bin/ngrok
  35. chmod 700 /data/data/com.termux/files/usr/bin/ngrok
  36. rm ngrok ngrok.zip
  37. clear
  38. echo
  39. echo " Ejemplo de uso (ngrok http 80)"
  40. ;;
  41.  
  42. n)
  43. clear
  44. echo "Ngrok instalado :("
  45. echo
  46. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement