Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1963 → Rev 1962

/alcasar.sh
936,16 → 936,11
$SED "s?^#bind-address.*?bind-address=127.0.0.1?g" /etc/my.cnf
$SED "s?^tmpdir.*?tmpdir=/tmp?g" /etc/my.cnf
/usr/bin/systemctl start mysqld.service
nb_round=1
while [ ! -f /var/run/mysqld/mysqld.pid ] && [ $nb_round -ne 10 ] # we wait until mariadb is on
do
nb_round=`expr $nb_round + 1`
sleep 2
done
if [ ! -f /var/run/mysqld/mysqld.pid ]
then
echo "Problème : la base donnée ne s'est pas lancée ! "
exit
sleep 4
is_active=`systemctl is-active mysqld`
if [ "$is_active" != "active" ]
then
sleep 4 # we need to wait again (slow machine)
fi
mysqladmin -u root password $mysqlpwd
MYSQL="/usr/bin/mysql -uroot -p$mysqlpwd --exec"