1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

scripts/mysqld_safe.sh

Only add --defaults-extra-file=$DATADIR/my.cnf if $DATADIR/my.cnf is readable.
This commit is contained in:
tim@siva.hindu.god
2005-05-27 12:44:06 +12:00
parent f8cb00640f
commit 8a77c6f741

View File

@@ -114,7 +114,7 @@ then
MY_BASEDIR_VERSION=$MY_PWD # Where bin, share and data are
ledir=$MY_BASEDIR_VERSION/bin # Where mysqld is
DATADIR=$MY_BASEDIR_VERSION/data
if test -z "$defaults"
if test -z "$defaults" -a -r "$DATADIR/my.cnf"
then
defaults="--defaults-extra-file=$DATADIR/my.cnf"
fi