summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-08-31 14:49:01 +0200
committerjustdave%syndicomm.com <>2001-08-31 14:49:01 +0200
commit31152e8e947876fb59da202dbee8cec5034a6e42 (patch)
treeb31068f7b0d77e2a33535ec056b50d65f590807a /checksetup.pl
parent5d1bca95620daf504093e781e26bea10357c9850 (diff)
downloadbugzilla-31152e8e947876fb59da202dbee8cec5034a6e42.tar.gz
bugzilla-31152e8e947876fb59da202dbee8cec5034a6e42.tar.xz
Fix for bug 75840: syncshadowdb -syncall now properly shuts down Bugzilla during the sync process so mysql doesn't get overloaded while the tables are locked. This patch also adds some funtionality to the script to allow you to specify an alternate temp directory on the command line, in case you have a large database and need it made to a different filesystem for space reasons.
Patch by Dawn Endico <endico@mozilla.org> and Jake Steenhagen <jake@acutex.net> r= justdave@syndicomm.com
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 7c165b9eb..053adc192 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -283,6 +283,25 @@ sub LocalVar ($$)
# Set up the defaults for the --LOCAL-- variables below:
#
+my $mysql_binaries = `which mysql`;
+if ($mysql_binaries =~ /no mysql/) {
+ # If which didn't find it, just provide a reasonable default
+ $mysql_binaries = "/usr/bin";
+} else {
+ $mysql_binaries =~ s:/mysql\n$::;
+}
+
+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
+
+
LocalVar('create_htaccess', <<'END');
#
# If you are using Apache for your web server, Bugzilla can create .htaccess