Amélioration de la nouvelle année
This commit is contained in:
parent
a0ab54f0e9
commit
7b12e913ab
@ -4,7 +4,7 @@ VARGANTDEV=1
|
||||
DIR=/vagrant
|
||||
DIRDATA=$DIR/data
|
||||
MYSQL_PASS=scores
|
||||
MARIADB_VERSION="10.0"
|
||||
MARIADB_VERSION="10.1"
|
||||
PHPMYADMIN_VERSION="4.5.2"
|
||||
|
||||
# --- Add a file action.upgrade to perfom a system upgrade
|
||||
@ -30,13 +30,14 @@ then
|
||||
then
|
||||
sudo apt-get install software-properties-common
|
||||
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
|
||||
sudo add-apt-repository 'deb http://nwps.ws/pub/mariadb/repo/10.0/ubuntu trusty main'
|
||||
sudo add-apt-repository 'deb [arch=amd64,i386] http://ftp.igh.cnrs.fr/pub/mariadb/repo/10.1/ubuntu trusty main'
|
||||
sudo apt-get update
|
||||
sudo debconf-set-selections <<< "mariadb-server-$MARIADB_VERSION mysql-server/root_password password $MYSQL_PASS"
|
||||
sudo debconf-set-selections <<< "mariadb-server-$MARIADB_VERSION mysql-server/root_password_again password $MYSQL_PASS"
|
||||
sudo apt-get -y --allow-unauthenticated install mariadb-server mariadb-client
|
||||
sudo apt-get -y install mariadb-server mariadb-client
|
||||
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 sed -i -e 's/max_connections[ \t]*= 100/max_connections = 20/g' /etc/mysql/my.cnf
|
||||
sudo service mysql restart
|
||||
sudo touch /etc/mysql/vagrant
|
||||
fi
|
||||
else
|
||||
@ -45,9 +46,10 @@ else
|
||||
then
|
||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $MYSQL_PASS"
|
||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $MYSQL_PASS"
|
||||
sudo apt-get -y install mysql-server
|
||||
sudo apt-get -y install mysql-server mysql-client
|
||||
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 sed -i -e 's/max_connections[ \t]*= 100/max_connections = 20/g' /etc/mysql/my.cnf
|
||||
sudo service mysql restart
|
||||
sudo touch /etc/mysql/vagrant
|
||||
fi
|
||||
fi
|
||||
@ -104,9 +106,9 @@ then
|
||||
fi
|
||||
|
||||
# --- Composer
|
||||
if [ ! -f /bin/composer ]
|
||||
if [ ! -f /usr/local/bin/composer ]
|
||||
then
|
||||
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=bin --filename=composer
|
||||
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
|
||||
fi
|
||||
|
||||
# --- Installation phpMyAdmin
|
||||
|
Loading…
Reference in New Issue
Block a user