From 334bead74bc9c5e819f14946726eaad40986d636 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 16 Dec 2017 13:17:05 -0600 Subject: Bug 1403777 - Migrate urlbase from params to localconfig --- checksetup.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index cd973f5c7..6cea8549d 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -155,6 +155,14 @@ unless ($ENV{LOCALCONFIG_ENV}) { } my $lc_hash = Bugzilla->localconfig; +unless ($switch{'no-database'}) { + die "urlbase is not set\n" unless $lc_hash->{urlbase}; + die "urlbase must end with slash\n" unless $lc_hash->{urlbase} =~ m{/$}ms; + if ($lc_hash->{attachment_base}) { + die "attachment_base must end with slash\n" unless $lc_hash->{attachment_base} =~ m{/$}ms; + } +} + ########################################################################### # Check --DATABASE-- setup ########################################################################### @@ -279,12 +287,6 @@ unless ($switch{'no-database'}) { # Reset the mod_perl pre-load list unlink(Bugzilla::Constants::bz_locations()->{datadir} . '/mod_perl_preload'); - # Check if the default parameter for urlbase is still set, and if so, give - # notification that they should go and visit editparams.cgi - if (Bugzilla->params->{'urlbase'} eq '') { - print "\n" . get_text('install_urlbase_default') . "\n" - unless $silent; - } if (!$silent) { success(get_text('install_success')); } -- cgit v1.2.3-24-g4f1b