Subversion Repositories ALCASAR

Rev

Rev 1976 | Rev 1980 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1976 Rev 1979
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1976 2016-07-03 16:23:56Z franck $ 
2
#  $Id: alcasar.sh 1979 2016-07-07 15:27:32Z 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 931... Line 931...
931
##########################################################################################
931
##########################################################################################
932
init_db ()
932
init_db ()
933
{
933
{
934
	rm -rf /var/lib/mysql # to be sure that there is no former installation
934
	rm -rf /var/lib/mysql # to be sure that there is no former installation
935
	[ -e /etc/my.cnf.default ] || cp /etc/my.cnf /etc/my.cnf.default
935
	[ -e /etc/my.cnf.default ] || cp /etc/my.cnf /etc/my.cnf.default
936
	$SED "s?^#bind-address.*?bind-address=127.0.0.1?g" /etc/my.cnf
-
 
937
	$SED "s?^tmpdir.*?tmpdir=/tmp?g" /etc/my.cnf
936
	$SED "s?^tmpdir.*?tmpdir=/tmp?g" /etc/my.cnf
-
 
937
	$SED "s?^port.*?#&?g" /etc/my.cnf # we use unix socket only
-
 
938
	$SED "s?^plugin-load.*?#&?g" /etc/my.cnf.s/feedback.cnf # remove the feedback plugin (ALCASAR doesn't report anything !)
938
	/usr/bin/systemctl start mysqld.service
939
	/usr/bin/systemctl start mysqld.service
939
	nb_round=1
940
	nb_round=1
940
	while [ ! -f /var/run/mysqld/mysqld.pid ] && [ $nb_round -ne 10 ] # we wait until mariadb is on
941
	while [ ! -f /var/run/mysqld/mysqld.pid ] && [ $nb_round -ne 10 ] # we wait until mariadb is on
941
	do
942
	do
942
		nb_round=`expr $nb_round + 1`
943
		nb_round=`expr $nb_round + 1`