Update trusty64 bootstrap
This commit is contained in:
parent
0f208d7634
commit
7ec7ae77ee
@ -2,7 +2,6 @@
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get -y upgrade
|
||||
sudo apt-get -y install htop unzip
|
||||
|
||||
# Installation Wkhtmltopdf
|
||||
if [ ! -f /usr/local/bin/wkhtmltopdf ]
|
||||
@ -15,7 +14,7 @@ fi
|
||||
if [ ! -f /usr/bin/php5 ]
|
||||
then
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install apache2 mysql-client-5.5 php5 php5-apcu php5-curl php5-xmlrpc php5-xsl php5-mysqlnd php5-xdebug
|
||||
sudo apt-get -y install htop unzip apache2 mysql-client-5.5 php5 php5-apcu php5-curl php5-xmlrpc php5-xsl php5-mysqlnd php5-xdebug
|
||||
sudo a2enmod autoindex deflate expires headers rewrite
|
||||
fi
|
||||
|
||||
@ -34,8 +33,6 @@ then
|
||||
#sudo sed -i -e 's/datadir = \/var\/lib\/mysql/datadir = \/home\/vhosts\/mysql/g' /etc/mysql/my.cnf
|
||||
sudo sed -i -e 's/bind-address[ \t]*= 127.0.0.1/bind-address = 0.0.0.0/g' /etc/mysql/my.cnf
|
||||
sudo sed -i -e 's/max_connections[ \t]*= 100/max_connections = 20/g' /etc/mysql/my.cnf
|
||||
sudo service mysql restart
|
||||
mysql -uroot -p$MYSQL_PASS < /vagrant/data/Apps/phpmyadmin.sql
|
||||
sudo touch /etc/mysql/vagrant
|
||||
fi
|
||||
|
||||
@ -43,10 +40,12 @@ fi
|
||||
PHPMYADMIN_VERSION='4.3.1'
|
||||
if [ ! -d "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages" ]
|
||||
then
|
||||
if [ -f "/vagrant/data/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" ]
|
||||
if [ -f "/vagrant/data/Apps/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" ]
|
||||
then
|
||||
unzip "/vagrant/data/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" -d /home/vhosts/
|
||||
mysql -uroot -p$MYSQL_PASS < "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/examples/create_tables.sql"
|
||||
unzip "/vagrant/data/Apps/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip" -d /home/vhosts/
|
||||
mysql -hlocalhost -uroot -p$MYSQL_PASS < /vagrant/data/Apps/phpmyadmin.sql
|
||||
mysql -hlocalhost -uroot -p$MYSQL_PASS < /home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/examples/create_tables.sql
|
||||
sudo service mysql restart
|
||||
cp /vagrant/data/Apps/config.inc.php "/home/vhosts/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages/"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user