Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1980 2016-07-07 16:08:49Z richard $
|
2 |
# $Id: alcasar.sh 1981 2016-07-08 07:44:30Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
|
5 |
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
Line 938... |
Line 938... |
938 |
$SED "s?^;collation_server =.*?collation_server = utf8_unicode_ci?g" /etc/my.cnf
|
938 |
$SED "s?^;collation_server =.*?collation_server = utf8_unicode_ci?g" /etc/my.cnf
|
939 |
$SED "s?^;character_set_server =.*?character_set_server = utf8?g" /etc/my.cnf # accentuated user names are allowed
|
939 |
$SED "s?^;character_set_server =.*?character_set_server = utf8?g" /etc/my.cnf # accentuated user names are allowed
|
940 |
$SED "s?^plugin-load.*?#&?g" /etc/my.cnf.d/feedback.cnf # remove the feedback plugin (ALCASAR doesn't report anything !)
|
940 |
$SED "s?^plugin-load.*?#&?g" /etc/my.cnf.d/feedback.cnf # remove the feedback plugin (ALCASAR doesn't report anything !)
|
941 |
/usr/bin/systemctl start mysqld.service
|
941 |
/usr/bin/systemctl start mysqld.service
|
942 |
nb_round=1
|
942 |
nb_round=1
|
943 |
while [ ! -f /var/lib/mysql/mysql.sock ] && [ $nb_round -ne 10 ] # we wait until mariadb is on
|
943 |
while [ ! -S /var/lib/mysql/mysql.sock ] && [ $nb_round -lt 10 ] # we wait until mariadb is on
|
944 |
do
|
944 |
do
|
945 |
nb_round=`expr $nb_round + 1`
|
945 |
nb_round=`expr $nb_round + 1`
|
946 |
sleep 2
|
946 |
sleep 2
|
947 |
done
|
947 |
done
|
948 |
if [ ! -f /var/lib/mysql/mysql.sock ]
|
948 |
if [ ! -S /var/lib/mysql/mysql.sock ]
|
949 |
then
|
949 |
then
|
950 |
echo "Problème : la base donnée ne s'est pas lancée ! "
|
950 |
echo "Problème : la base données 'MariaDB' ne s'est pas lancée !"
|
951 |
exit
|
951 |
exit
|
952 |
fi
|
952 |
fi
|
953 |
mysqladmin -u root password $mysqlpwd
|
953 |
mysqladmin -u root password $mysqlpwd
|
954 |
MYSQL="/usr/bin/mysql -uroot -p$mysqlpwd --exec"
|
954 |
MYSQL="/usr/bin/mysql -uroot -p$mysqlpwd --exec"
|
955 |
# Secure the server
|
955 |
# Secure the server
|