Guest User

Untitled

a guest
Sep 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. read -p "Continuar com a instalação do Painel V5 BY @Juniorrios (S/N)? " -n 1 -r
  4.  
  5. echo
  6.  
  7. case "$REPLY" in
  8. s|S )
  9. tput setaf 4 ; tput bold ;echo "Aguarde a Instalação automatica..."; tput sgr0;
  10. apt-get update && apt-get upgrade -y
  11. apt-get install curl -y
  12. apt-get install apache2 -y
  13. apt-get install php5 libapache2-mod-php5 php5-mcrypt -y
  14. service apache2 restart
  15. apt-get install mysql-server php5-mysql -y
  16. mysql_install_db
  17. mysql_secure_installation
  18. apt-get install phpmyadmin -y
  19. php5enmod mcrypt
  20. service apache2 restart
  21. ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
  22. apt-get install libssh2-1-dev libssh2-php -y
  23. mysql -h localhost -u root -proot -e "CREATE DATABASE ssh"
  24. php -m |grep ssh2
  25. service apache2 restart
  26. cp PainelV5.zip /var/www/html
  27. cd /var/www/html
  28. apt-get install unzip -y
  29. unzip PainelV5.zip
  30. rm PainelV5.zip index.html
  31. clear
  32. tput setaf 2 ; tput bold ;echo "Instalação Efetuada com sucesso (configure o banco de dados e pass.php..."; tput sgr0
  33. ;;
  34. n|N ) tput setaf 1 ; tput bold ;echo "Instalação Parada..."; tput sgr0; ;;
  35. * ) tput setaf 1 ; tput bold ; echo "Digite apenas ou S ou N";tput sgr0; ;;
  36. esac
  37.  
  38. exit 0
Add Comment
Please, Sign In to add comment