Skip to content

Commit bb1297c

Browse files
author
df@kahlann.erinye.com
committed
Merge kahlann.erinye.com:/home/df/mysql/build/mysql-4.1-build-work
into kahlann.erinye.com:/home/df/mysql/build/mysql-5.0-build-work
2 parents 41a2a60 + 77965c0 commit bb1297c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

scripts/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ SUFFIXES = .sh
115115
-e 's!@''pkglibdir''@!$(pkglibdir)!g' \
116116
-e 's!@''pkgincludedir''@!$(pkgincludedir)!g' \
117117
-e 's!@''pkgdatadir''@!$(pkgdatadir)!g' \
118+
-e 's!@''sysconfdir''@!$(sysconfdir)!g' \
118119
-e 's!@''CC''@!@CC@!'\
119120
-e 's!@''CXX''@!@CXX@!'\
120121
-e 's!@''GXX''@!@GXX@!'\

scripts/mysqlaccess.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,8 @@ MySQLaccess::Report::Print_Header();
462462
if (-f "./$script_conf") {
463463
require "./$script_conf";
464464
}
465-
elsif (-f "/etc/$script_conf") {
466-
require "/etc/$script_conf";
465+
elsif (-f "@sysconfdir@/$script_conf") {
466+
require "@sysconfdir@/$script_conf";
467467
}
468468
469469
# ****************************
@@ -929,7 +929,7 @@ sub MergeConfigFile {
929929
# =================================
930930
sub MergeConfigFiles {
931931
my ($name,$pass,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getpwuid $<;
932-
MergeConfigFile("/etc/my.cnf");
932+
MergeConfigFile("@sysconfdir@/my.cnf");
933933
MergeConfigFile("$dir/.my.cnf");
934934
}
935935

scripts/mysqld_multi.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ sub find_groups
464464
}
465465
else
466466
{
467-
if (-f "/etc/my.cnf" && -r "/etc/my.cnf")
467+
if (-f "@sysconfdir@/my.cnf" && -r "@sysconfdir@/my.cnf")
468468
{
469-
open(MY_CNF, "</etc/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
469+
open(MY_CNF, "<@sysconfdir@/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
470470
}
471471
for ($i = 0; ($line = shift @tmp); $i++)
472472
{
@@ -703,7 +703,7 @@ sub example
703703
# (as per Linux/Unix standard). You may even replace the
704704
# /etc/init.d/mysql.server script with it.
705705
#
706-
# Before using, you must create a my.cnf file either in /etc/my.cnf
706+
# Before using, you must create a my.cnf file either in @sysconfdir@/my.cnf
707707
# or /root/.my.cnf and add the [mysqld_multi] and [mysqld#] groups.
708708
#
709709
# The script can be found from support-files/mysqld_multi.server.sh

0 commit comments

Comments
 (0)