diff options
author | unknown <mtaylor@qualinost.(none)> | 2006-12-15 16:17:10 -0800 |
---|---|---|
committer | unknown <mtaylor@qualinost.(none)> | 2006-12-15 16:17:10 -0800 |
commit | 3c04f839b9326a9eb3090a74128d7466af9827dd (patch) | |
tree | 0e45d1c147b4c587f6d6cfe3cc420db8d6ee2cae | |
parent | 449450804b27e42a7dc8c7927445d0c4a3d01bc3 (diff) | |
download | mariadb-git-3c04f839b9326a9eb3090a74128d7466af9827dd.tar.gz |
support /etc/mysql/my.cnf in mysqld_multi as well.
-rw-r--r-- | scripts/mysqld_multi.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh index 4a6f380494f..b11dc7394bf 100644 --- a/scripts/mysqld_multi.sh +++ b/scripts/mysqld_multi.sh @@ -437,6 +437,14 @@ sub find_groups { $data[$i] = $line; } + if (-f "/etc/mysql/my.cnf" && -r "/etc/mysql/my.cnf") + { + open(MY_CNF, "</etc/mysql/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF); + } + for (; ($line = shift @tmp); $i++) + { + $data[$i] = $line; + } if (-f "$homedir/.my.cnf" && -r "$homedir/.my.cnf") { open(MY_CNF, "<$homedir/.my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF); @@ -446,7 +454,7 @@ sub find_groups $data[$i] = $line; } } - chop @data; + chomp @data; # Make a list of the wanted group ids if (defined($raw_gids)) { |