Commit 70ad05e5 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 716227: When checksetup.pl tells the admin that he should edit variables in…

Bug 716227: When checksetup.pl tells the admin that he should edit variables in localconfig, the message should be red r=timello a=LpSolit
parent 3ce5a41d
...@@ -32,11 +32,12 @@ use strict; ...@@ -32,11 +32,12 @@ use strict;
use Bugzilla::Constants; use Bugzilla::Constants;
use Bugzilla::Install::Util qw(bin_loc install_string); use Bugzilla::Install::Util qw(bin_loc install_string);
use Bugzilla::Util qw(generate_random_password); use Bugzilla::Util qw(generate_random_password wrap_hard);
use Data::Dumper; use Data::Dumper;
use File::Basename qw(dirname); use File::Basename qw(dirname);
use Safe; use Safe;
use Term::ANSIColor;
use base qw(Exporter); use base qw(Exporter);
...@@ -273,8 +274,10 @@ sub update_localconfig { ...@@ -273,8 +274,10 @@ sub update_localconfig {
if (@new_vars) { if (@new_vars) {
my $newstuff = join(', ', @new_vars); my $newstuff = join(', ', @new_vars);
print "\n", install_string('lc_new_vars', print "\n";
{ localconfig => $filename, new_vars => $newstuff }), "\n"; print colored(install_string('lc_new_vars', { localconfig => $filename,
new_vars => wrap_hard($newstuff, 70) }),
COLOR_ERROR), "\n";
exit; exit;
} }
......
...@@ -60,7 +60,7 @@ EOT ...@@ -60,7 +60,7 @@ EOT
commands_optional => 'COMMANDS TO INSTALL OPTIONAL MODULES:', commands_optional => 'COMMANDS TO INSTALL OPTIONAL MODULES:',
commands_required => <<EOT, commands_required => <<EOT,
COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands
and then re-run this script): and then re-run checksetup.pl):
EOT EOT
continue_without_answers => <<'END', continue_without_answers => <<'END',
Re-run checksetup.pl in interactive mode (without an 'answers' file) Re-run checksetup.pl in interactive mode (without an 'answers' file)
...@@ -140,12 +140,14 @@ END ...@@ -140,12 +140,14 @@ END
ERROR: Using install-module.pl requires that you install "make". ERROR: Using install-module.pl requires that you install "make".
END END
lc_new_vars => <<'END', lc_new_vars => <<'END',
This version of Bugzilla contains some variables that you may want to This version of Bugzilla contains some variables that you may want to
change and adapt to your local settings. Please edit the file change and adapt to your local settings. The following variables are
##localconfig## and then rerun checksetup.pl. new to ##localconfig## since you last ran checksetup.pl:
The following variables are new to ##localconfig## since you last ran ##new_vars##
checksetup.pl: ##new_vars##
Please edit the file ##localconfig## and then re-run checksetup.pl
to complete your installation.
END END
lc_old_vars => <<'END', lc_old_vars => <<'END',
The following variables are no longer used in ##localconfig##, and The following variables are no longer used in ##localconfig##, and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment