summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-12-16 20:17:05 +0100
committerGitHub <noreply@github.com>2017-12-16 20:17:05 +0100
commit334bead74bc9c5e819f14946726eaad40986d636 (patch)
treee7ecf8d4eba2e6a046da8a9dc8828f35b75c7428 /checksetup.pl
parent49e0df0d4e1b2f25be4ab36660dac5e47768c9a1 (diff)
downloadbugzilla-334bead74bc9c5e819f14946726eaad40986d636.tar.gz
bugzilla-334bead74bc9c5e819f14946726eaad40986d636.tar.xz
Bug 1403777 - Migrate urlbase from params to localconfig
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl14
1 files changed, 8 insertions, 6 deletions
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'));
}