From d1b70cf8aebf9444de71595531911ef949c69a4a Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 13 Apr 2005 04:40:56 +0000 Subject: Bug 289742: No value for param user_verify_class at Bugzilla/Config.pm line 162 - Patch by byron jones (glob) r=gerv, a=justdave --- checksetup.pl | 98 +++++++++++++++++++++++++++++------------------------------ 1 file changed, 49 insertions(+), 49 deletions(-) (limited to 'checksetup.pl') diff --git a/checksetup.pl b/checksetup.pl index f556682f3..fa8cf7354 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1133,6 +1133,55 @@ END } } +# Just to be sure ... +unlink "$datadir/versioncache"; + +# Remove parameters from the params file that no longer exist in Bugzilla, +# and set the defaults for new ones + +my @oldparams = UpdateParams(); + +if (@oldparams) { + open(PARAMFILE, '>>', 'old-params.txt') + || die "$0: Can't open old-params.txt for writing: $!\n"; + + print "The following parameters are no longer used in Bugzilla, " . + "and so have been\nmoved from your parameters file " . + "into old-params.txt:\n"; + + foreach my $p (@oldparams) { + my ($item, $value) = @{$p}; + + print PARAMFILE "\n\n$item:\n$value\n"; + + print $item; + print ", " unless $item eq $oldparams[$#oldparams]->[0]; + } + print "\n"; + close PARAMFILE; +} + +# Set mail_delivery_method to SMTP and prompt for SMTP server +# if running on Windows and set to sendmail (Mail::Mailer doesn't +# support sendmail on Windows) +if ($^O =~ /MSWin32/i && Param('mail_delivery_method') eq 'sendmail') { + print "\nBugzilla requires an SMTP server to function on Windows.\n" . + "Please enter your SMTP server's hostname: "; + my $smtp = $answer{'SMTP_SERVER'} + || ($silent && die("cant preload SMTP_SERVER")) + || ; + chomp $smtp; + if (!$smtp) { + print "\nWarning: No SMTP Server provided, defaulting to localhost\n"; + $smtp = 'localhost'; + } + SetParam('mail_delivery_method', 'smtp'); + SetParam('smtpserver', $smtp); +} + +# WriteParams will only write out still-valid entries +WriteParams(); + unless ($switch{'no_templates'}) { if (-e "$datadir/template") { print "Removing existing compiled templates ...\n" unless $silent; @@ -1204,55 +1253,6 @@ unless ($switch{'no_templates'}) { } } -# Just to be sure ... -unlink "$datadir/versioncache"; - -# Remove parameters from the params file that no longer exist in Bugzilla, -# and set the defaults for new ones - -my @oldparams = UpdateParams(); - -if (@oldparams) { - open(PARAMFILE, '>>', 'old-params.txt') - || die "$0: Can't open old-params.txt for writing: $!\n"; - - print "The following parameters are no longer used in Bugzilla, " . - "and so have been\nmoved from your parameters file " . - "into old-params.txt:\n"; - - foreach my $p (@oldparams) { - my ($item, $value) = @{$p}; - - print PARAMFILE "\n\n$item:\n$value\n"; - - print $item; - print ", " unless $item eq $oldparams[$#oldparams]->[0]; - } - print "\n"; - close PARAMFILE; -} - -# Set mail_delivery_method to SMTP and prompt for SMTP server -# if running on Windows and set to sendmail (Mail::Mailer doesn't -# support sendmail on Windows) -if ($^O =~ /MSWin32/i && Param('mail_delivery_method') eq 'sendmail') { - print "\nBugzilla requires an SMTP server to function on Windows.\n" . - "Please enter your SMTP server's hostname: "; - my $smtp = $answer{'SMTP_SERVER'} - || ($silent && die("cant preload SMTP_SERVER")) - || ; - chomp $smtp; - if (!$smtp) { - print "\nWarning: No SMTP Server provided, defaulting to localhost\n"; - $smtp = 'localhost'; - } - SetParam('mail_delivery_method', 'smtp'); - SetParam('smtpserver', $smtp); -} - -# WriteParams will only write out still-valid entries -WriteParams(); - ########################################################################### # Set proper rights ########################################################################### -- cgit v1.2.3-24-g4f1b