summaryrefslogtreecommitdiff
path: root/scripts/mysqld_multi.sh
diff options
context:
space:
mode:
authordf@kahlann.erinye.com <>2007-01-09 09:32:56 +0100
committerdf@kahlann.erinye.com <>2007-01-09 09:32:56 +0100
commiteeb82a8ed5a0415737c12ecc4ec97708461d5081 (patch)
tree856d84b766dbb0e6f6001060af3fe832276d27a8 /scripts/mysqld_multi.sh
parent2247682f1e0636c29e8d2072b982fb2bdd98a3e6 (diff)
downloadmariadb-git-eeb82a8ed5a0415737c12ecc4ec97708461d5081.tar.gz
BUG#24780 workaround for broken installations that depend on using /etc, but were configured differently
Diffstat (limited to 'scripts/mysqld_multi.sh')
-rw-r--r--scripts/mysqld_multi.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh
index ce778c03206..8b435161e47 100644
--- a/scripts/mysqld_multi.sh
+++ b/scripts/mysqld_multi.sh
@@ -432,6 +432,9 @@ sub find_groups
if (-f "@sysconfdir@/my.cnf" && -r "@sysconfdir@/my.cnf")
{
open(MY_CNF, "<@sysconfdir@/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
+ } elsif (-f "/etc/my.cnf" && -r "/etc/my.cnf")
+ {
+ open(MY_CNF, "</etc/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
}
for ($i = 0; ($line = shift @tmp); $i++)
{