diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-08-12 11:47:16 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-08-12 12:02:23 +0200 |
commit | 0aa9b03393f515d7b07c3139756c2a9270501c97 (patch) | |
tree | 074514d29d2db5045db04fb838506b3eb5d456e9 /scripts | |
parent | 655cba619d2e6556d4a7c6a3b9127f248bb8e5a0 (diff) | |
parent | 4cbf77e16ef9324acf85c01bc63023d62b821752 (diff) | |
download | mariadb-git-0aa9b03393f515d7b07c3139756c2a9270501c97.tar.gz |
Merge branch '10.2' into 10.3
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysqld_multi.sh | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh index 2ab70cdd4c3..10fcf2ae2b4 100644 --- a/scripts/mysqld_multi.sh +++ b/scripts/mysqld_multi.sh @@ -492,12 +492,19 @@ sub list_defaults_files return ($opt{file}) if exists $opt{file}; - return ('@sysconfdir@/my.cnf', - '@sysconfdir@/mysql/my.cnf', - '@prefix@/my.cnf', - ($ENV{MYSQL_HOME} ? "$ENV{MYSQL_HOME}/my.cnf" : undef), - $opt{'extra-file'}, - ($ENV{HOME} ? "$ENV{HOME}/.my.cnf" : undef)); + my @dirs; + + # same rule as in mysys/my_default.c + if ('@sysconfdir@') { + push @dirs, '@sysconfdir@/my.cnf'; + } else { + push @dirs, '/etc/my.cnf', '/etc/mysql/my.cnf'; + } + push @dirs, "$ENV{MYSQL_HOME}/my.cnf" if $ENV{MYSQL_HOME}; + push @dirs, $opt{'extra-file'} if $opt{'extra-file'}; + push @dirs, "$ENV{HOME}/.my.cnf" if $ENV{HOME}; + + return @dirs; } |