summaryrefslogtreecommitdiff
path: root/scripts/mysqld_multi.sh
diff options
context:
space:
mode:
authormtaylor@qualinost.(none) <>2006-12-15 12:34:36 -0800
committermtaylor@qualinost.(none) <>2006-12-15 12:34:36 -0800
commit265370f5c3a324c7d063739d6c0b42c1a746dc1b (patch)
tree3f731c7641f9ecf2d893f9c009c9ad6b1de6bb2b /scripts/mysqld_multi.sh
parentb1e7c78302cb27eac77bcef5ef3bde19bff59197 (diff)
downloadmariadb-git-265370f5c3a324c7d063739d6c0b42c1a746dc1b.tar.gz
Added /etc/mysql to my.cnf search path after /etc.
bug #25104
Diffstat (limited to 'scripts/mysqld_multi.sh')
-rw-r--r--scripts/mysqld_multi.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh
index 2dcc8dc7bc4..6ac31a00c75 100644
--- a/scripts/mysqld_multi.sh
+++ b/scripts/mysqld_multi.sh
@@ -472,6 +472,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 (defined($ENV{MYSQL_HOME}) && -f "$ENV{MYSQL_HOME}/my.cnf" &&
-r "$ENV{MYSQL_HOME}/my.cnf")
{
@@ -491,7 +499,7 @@ sub find_groups
$data[$i] = $line;
}
}
- chop @data;
+ chomp @data;
# Make a list of the wanted group ids
if (defined($raw_gids))
{