mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0
This commit is contained in:
commit
d5f573713a
1 changed files with 18 additions and 5 deletions
|
@ -128,15 +128,28 @@ then
|
|||
else
|
||||
MY_BASEDIR_VERSION=@prefix@
|
||||
DATADIR=@localstatedir@
|
||||
if test -z "$MYSQL_HOME"
|
||||
then
|
||||
MYSQL_HOME=$DATADIR # Installation in a not common path
|
||||
fi
|
||||
ledir=@libexecdir@
|
||||
fi
|
||||
|
||||
if test -z "$MYSQL_HOME"
|
||||
then
|
||||
MYSQL_HOME=$MY_BASEDIR_VERSION
|
||||
if test -r "$MY_BASEDIR_VERSION/my.cnf" && test -r "$DATADIR/my.cnf"
|
||||
then
|
||||
echo "WARNING: Found two instances of my.cnf -"
|
||||
echo "$MY_BASEDIR_VERSION/my.cnf and"
|
||||
echo "$DATADIR/my.cnf"
|
||||
echo "IGNORING $DATADIR/my.cnf"
|
||||
echo
|
||||
MYSQL_HOME=$MY_BASEDIR_VERSION
|
||||
elif test -r "$DATADIR/my.cnf"
|
||||
then
|
||||
echo "WARNING: Found $DATADIR/my.cnf"
|
||||
echo "Datadir is deprecated place for my.cnf, please move it to $MY_BASEDIR_VERSION"
|
||||
echo
|
||||
MYSQL_HOME=$DATADIR
|
||||
else
|
||||
MYSQL_HOME=$MY_BASEDIR_VERSION
|
||||
fi
|
||||
fi
|
||||
export MYSQL_HOME
|
||||
|
||||
|
|
Loading…
Reference in a new issue