mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
mysql-test/install_test_db.sh
Adapt to the different path of the server program, if installation was by RPM. Missing in the first changeset for bug#17194. mysql-test/install_test_db.sh: Adapt to the different path of the server program, if installation was by RPM. Missing in the first changeset for bug#17194.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Copyright (C) 1997-2002 MySQL AB
|
# Copyright (C) 1997-2006 MySQL AB
|
||||||
# For a more info consult the file COPYRIGHT distributed with this file
|
# For a more info consult the file COPYRIGHT distributed with this file
|
||||||
|
|
||||||
# This scripts creates the privilege tables db, host, user, tables_priv,
|
# This scripts creates the privilege tables db, host, user, tables_priv,
|
||||||
@ -7,19 +7,26 @@
|
|||||||
|
|
||||||
if [ x$1 = x"--bin" ]; then
|
if [ x$1 = x"--bin" ]; then
|
||||||
shift 1
|
shift 1
|
||||||
|
BINARY_DIST=1
|
||||||
|
|
||||||
|
bindir=../bin
|
||||||
|
scriptdir=../bin
|
||||||
|
libexecdir=../libexec
|
||||||
|
|
||||||
# Check if it's a binary distribution or a 'make install'
|
# Check if it's a binary distribution or a 'make install'
|
||||||
if test -x ../libexec/mysqld
|
if test -x ../libexec/mysqld
|
||||||
then
|
then
|
||||||
execdir=../libexec
|
execdir=../libexec
|
||||||
|
elif test -x ../../sbin/mysqld # RPM installation
|
||||||
|
then
|
||||||
|
execdir=../../sbin
|
||||||
|
bindir=../../bin
|
||||||
|
scriptdir=../../bin
|
||||||
|
libexecdir=../../libexec
|
||||||
else
|
else
|
||||||
execdir=../bin
|
execdir=../bin
|
||||||
fi
|
fi
|
||||||
bindir=../bin
|
|
||||||
BINARY_DIST=1
|
|
||||||
fix_bin=mysql-test
|
fix_bin=mysql-test
|
||||||
scriptdir=../bin
|
|
||||||
libexecdir=../libexec
|
|
||||||
else
|
else
|
||||||
execdir=../sql
|
execdir=../sql
|
||||||
bindir=../client
|
bindir=../client
|
||||||
|
Reference in New Issue
Block a user