Subversion Repositories ALCASAR

Rev

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

Rev 1990 Rev 1991
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1990 2016-07-14 17:34:45Z richard $ 
2
#  $Id: alcasar.sh 1991 2016-07-14 20:06:48Z 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 934... Line 934...
934
	if [ `systemctl is-active mysqld` == "active" ]
934
	if [ `systemctl is-active mysqld` == "active" ]
935
	then
935
	then
936
		systemctl stop mysqld
936
		systemctl stop mysqld
937
	fi
937
	fi
938
	rm -rf /var/lib/mysql # to be sure that there is no former installation
938
	rm -rf /var/lib/mysql # to be sure that there is no former installation
939
	/usr/sbin/mysql-prepare-db-dir
939
	/usr/sbin/mysqld-prepare-db-dir > /dev/null 2>&1
940
	[ -e /etc/my.cnf.default ] || cp /etc/my.cnf /etc/my.cnf.default
940
	[ -e /etc/my.cnf.default ] || cp /etc/my.cnf /etc/my.cnf.default
941
	$SED "s?^tmpdir.*?tmpdir=/tmp?g" /etc/my.cnf
941
	$SED "s?^tmpdir.*?tmpdir=/tmp?g" /etc/my.cnf
942
	$SED "s?^port.*?#&?g" /etc/my.cnf # we use unix socket only
942
	$SED "s?^port.*?#&?g" /etc/my.cnf # we use unix socket only
943
	$SED "s?^;collation_server =.*?collation_server = utf8_unicode_ci?g" /etc/my.cnf
943
	$SED "s?^;collation_server =.*?collation_server = utf8_unicode_ci?g" /etc/my.cnf
944
	$SED "s?^;character_set_server =.*?character_set_server = utf8?g" /etc/my.cnf  # accentuated user names are allowed
944
	$SED "s?^;character_set_server =.*?character_set_server = utf8?g" /etc/my.cnf  # accentuated user names are allowed