diff options
author | df@kahlann.erinye.com <> | 2007-01-09 09:32:56 +0100 |
---|---|---|
committer | df@kahlann.erinye.com <> | 2007-01-09 09:32:56 +0100 |
commit | eeb82a8ed5a0415737c12ecc4ec97708461d5081 (patch) | |
tree | 856d84b766dbb0e6f6001060af3fe832276d27a8 /scripts/mysqlaccess.sh | |
parent | 2247682f1e0636c29e8d2072b982fb2bdd98a3e6 (diff) | |
download | mariadb-git-eeb82a8ed5a0415737c12ecc4ec97708461d5081.tar.gz |
BUG#24780 workaround for broken installations that depend on using /etc, but were configured differently
Diffstat (limited to 'scripts/mysqlaccess.sh')
-rw-r--r-- | scripts/mysqlaccess.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/mysqlaccess.sh b/scripts/mysqlaccess.sh index 22e9d121f9a..bcaf9f8af8e 100644 --- a/scripts/mysqlaccess.sh +++ b/scripts/mysqlaccess.sh @@ -465,6 +465,9 @@ MySQLaccess::Report::Print_Header(); elsif (-f "@sysconfdir@/$script_conf") { require "@sysconfdir@/$script_conf"; } + elsif (-f "/etc/$script_conf") { + require "/etc/$script_conf"; + } # **************************** # Read in all parameters @@ -930,6 +933,7 @@ sub MergeConfigFile { sub MergeConfigFiles { my ($name,$pass,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getpwuid $<; MergeConfigFile("@sysconfdir@/my.cnf"); + MergeConfigFile("/etc/my.cnf"); MergeConfigFile("$dir/.my.cnf"); } |