/[gentoo-x86]/eclass/mysql.eclass
Gentoo

Diff of /eclass/mysql.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.140 Revision 1.141
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.140 2010/03/24 03:09:08 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.141 2010/03/24 03:45:56 robbat2 Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 7# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
8# Maintainers: MySQL Team <mysql-bugs@gentoo.org> 8# Maintainers: MySQL Team <mysql-bugs@gentoo.org>
1107 local pwd1="a" 1107 local pwd1="a"
1108 local pwd2="b" 1108 local pwd2="b"
1109 local MYSQL_ROOT_PASSWORD='' 1109 local MYSQL_ROOT_PASSWORD=''
1110 local maxtry=15 1110 local maxtry=15
1111 1111
1112 if [ -z "${MYSQL_ROOT_PASSWORD}" -a -f "${ROOT}/root/.my.cnf" ]; then
1113 MYSQL_ROOT_PASSWORD="$(sed -n -e '/^password=/s,^password=,,gp' "${ROOT}/root/.my.cnf")"
1114 fi
1115
1112 if [[ -d "${ROOT}/${MY_DATADIR}/mysql" ]] ; then 1116 if [[ -d "${ROOT}/${MY_DATADIR}/mysql" ]] ; then
1113 ewarn "You have already a MySQL database in place." 1117 ewarn "You have already a MySQL database in place."
1114 ewarn "(${ROOT}/${MY_DATADIR}/*)" 1118 ewarn "(${ROOT}/${MY_DATADIR}/*)"
1115 ewarn "Please rename or delete it if you wish to replace it." 1119 ewarn "Please rename or delete it if you wish to replace it."
1116 die "MySQL database already exists!" 1120 die "MySQL database already exists!"

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141

  ViewVC Help
Powered by ViewVC 1.1.20