summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-04-10 23:53:00 +0200
committerjocuri%softhome.net <>2004-04-10 23:53:00 +0200
commit2cb580b5c21df6924b9fb7b16331421267462b6e (patch)
tree9b54c64eaa793db78cedfe9a2c55131841d64882 /checksetup.pl
parent5f6285dd22095bd6d04e772a89db69d249f8cbb4 (diff)
downloadbugzilla-2cb580b5c21df6924b9fb7b16331421267462b6e.tar.gz
bugzilla-2cb580b5c21df6924b9fb7b16331421267462b6e.tar.xz
Patch for bug 224698: remove localconfig variable mysqlpath; patch by chaduv <caduvall@glue.umd.edu> slightly updated by me; r=kiko, a=myk.
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl31
1 files changed, 5 insertions, 26 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 47569b713..8edb48145 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -485,32 +485,6 @@ LocalVar('index_html', <<'END');
$index_html = 0;
END
-if (!LocalVarExists('mysqlpath')) {
- my $mysql_binaries;
- if ($^O !~ /MSWin32/i) {
- $mysql_binaries = `which mysql`;
- if ($mysql_binaries =~ /no mysql/ || $mysql_binaries eq '') {
- # If which didn't find it, just provide a reasonable default
- $mysql_binaries = "/usr/bin";
- } else {
- $mysql_binaries =~ s:/mysql\n$::;
- }
- } else {
- # provide a reasonable default for Windows
- $mysql_binaries = 'c:\mysql\bin';
- }
-
- LocalVar('mysqlpath', <<"END");
-#
-# In order to do certain functions in Bugzilla (such as sync the shadow
-# database), we require the MySQL Binaries (mysql, mysqldump, and mysqladmin).
-# Because it's possible that these files aren't in your path, you can specify
-# their location here.
-# Please specify only the directory name, with no trailing slash.
-\$mysqlpath = '$mysql_binaries';
-END
-}
-
if (!LocalVarExists('cvsbin')) {
my $cvs_executable;
@@ -762,6 +736,11 @@ LocalVar('platforms', '
);
');
+if (LocalVarExists('mysqlpath')) {
+ print "\nThe \$mysqlpath setting in your localconfig file ",
+ "is no longer required.\nWe recommend you remove it.\n";
+}
+
if ($newstuff ne "") {
print "\nThis version of Bugzilla contains some variables that you may want\n",
"to change and adapt to your local settings. Please edit the file\n",