Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "Continuar com a instalação do Painel V5 BY @Juniorrios (S/N)? " -n 1 -r
- echo
- case "$REPLY" in
- s|S )
- tput setaf 4 ; tput bold ;echo "Aguarde a Instalação automatica..."; tput sgr0;
- apt-get update && apt-get upgrade -y
- apt-get install curl -y
- apt-get install apache2 -y
- apt-get install php5 libapache2-mod-php5 php5-mcrypt -y
- service apache2 restart
- apt-get install mysql-server php5-mysql -y
- mysql_install_db
- mysql_secure_installation
- apt-get install phpmyadmin -y
- php5enmod mcrypt
- service apache2 restart
- ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
- apt-get install libssh2-1-dev libssh2-php -y
- mysql -h localhost -u root -proot -e "CREATE DATABASE ssh"
- php -m |grep ssh2
- service apache2 restart
- cp PainelV5.zip /var/www/html
- cd /var/www/html
- apt-get install unzip -y
- unzip PainelV5.zip
- rm PainelV5.zip index.html
- clear
- tput setaf 2 ; tput bold ;echo "Instalação Efetuada com sucesso (configure o banco de dados e pass.php..."; tput sgr0
- ;;
- n|N ) tput setaf 1 ; tput bold ;echo "Instalação Parada..."; tput sgr0; ;;
- * ) tput setaf 1 ; tput bold ; echo "Digite apenas ou S ou N";tput sgr0; ;;
- esac
- exit 0
Add Comment
Please, Sign In to add comment