diff options
author | lpsolit%gmail.com <> | 2005-04-13 06:40:56 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-04-13 06:40:56 +0200 |
commit | d1b70cf8aebf9444de71595531911ef949c69a4a (patch) | |
tree | 3407968d8a97ad2cf6dd48e93d6884a171c38d7d | |
parent | 82a81cbeeb591b9fdd6a67c46791052dc039b5d3 (diff) | |
download | bugzilla-d1b70cf8aebf9444de71595531911ef949c69a4a.tar.gz bugzilla-d1b70cf8aebf9444de71595531911ef949c69a4a.tar.xz |
Bug 289742: No value for param user_verify_class at Bugzilla/Config.pm line 162 - Patch by byron jones (glob) <bugzilla@glob.com.au> r=gerv, a=justdave
-rwxr-xr-x | checksetup.pl | 98 |
1 files changed, 49 insertions, 49 deletions
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")) + || <STDIN>; + 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")) - || <STDIN>; - 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 ########################################################################### |