summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authormozilla%colinogilvie.co.uk <>2005-11-20 08:55:26 +0100
committermozilla%colinogilvie.co.uk <>2005-11-20 08:55:26 +0100
commit8b18b7e15dd23f7829c47376f33be613ca7bc977 (patch)
tree008781e8991470a6afbc9d67c6901e9edb64ec43 /checksetup.pl
parent740e03663517cf50d12fa2795b883615083ef6f0 (diff)
downloadbugzilla-8b18b7e15dd23f7829c47376f33be613ca7bc977.tar.gz
bugzilla-8b18b7e15dd23f7829c47376f33be613ca7bc977.tar.xz
Bug 304936: checksetup.pl should inform the user to go to editparams.cgi if they haven't yet
Patch by Colin Ogilvie <colin.ogilvie@gmail.com>, r=LpSolit, a=justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl17
1 files changed, 17 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 8a54ea722..3f378efd7 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -4550,4 +4550,21 @@ $dbh->do("UPDATE components " .
unlink "$datadir/versioncache";
+# Check if the default parameter for urlbase is still set, and if so, give
+# notification that they should go and visit editparams.cgi
+
+my @params = Bugzilla::Config::Core::get_param_list();
+my $urlbase_default = '';
+foreach my $item (@params) {
+ next unless $item->{'name'} eq 'urlbase';
+ $urlbase_default = $item->{'default'};
+ last;
+}
+
+if (Param('urlbase') eq $urlbase_default) {
+ print "Now that you have installed Bugzilla, you should visit the \n" .
+ "'Parameters' page (linked in the footer of the Administrator \n" .
+ "account) to ensure it is set up as you wish - this includes \n" .
+ "setting the 'urlbase' option to the correct url.\n" unless $silent;
+}
################################################################################