Lines 55-63
my $dbh = DBI->connect(
Link Here
|
55 |
); |
55 |
); |
56 |
|
56 |
|
57 |
if ( $step && $step == 1 ) { |
57 |
if ( $step && $step == 1 ) { |
58 |
#First Step |
58 |
#First Step (for both fresh installations and upgrades) |
59 |
#Checking ALL perl Modules and services needed are installed. |
59 |
#Checking ALL perl Modules and services needed are installed. |
60 |
#Whenever there is an error, adding a report to the page |
60 |
#Whenever there is an error, adding a report to the page |
|
|
61 |
my $op = $query->param('op') || 'noop'; |
61 |
$template->param( language => 1 ); |
62 |
$template->param( language => 1 ); |
62 |
$template->param( 'checkmodule' => 1 ); # we start with the assumption that there are no problems and set this to 0 if there are |
63 |
$template->param( 'checkmodule' => 1 ); # we start with the assumption that there are no problems and set this to 0 if there are |
63 |
|
64 |
|
Lines 86-92
if ( $step && $step == 1 ) {
Link Here
|
86 |
); |
87 |
); |
87 |
} |
88 |
} |
88 |
@components = sort {$a->{'name'} cmp $b->{'name'}} @components; |
89 |
@components = sort {$a->{'name'} cmp $b->{'name'}} @components; |
89 |
$template->param( missing_modules => \@components, checkmodule => $checkmodule ); |
90 |
$template->param( missing_modules => \@components, checkmodule => $checkmodule, op => $op ); |
90 |
} |
91 |
} |
91 |
} |
92 |
} |
92 |
elsif ( $step && $step == 2 ) { |
93 |
elsif ( $step && $step == 2 ) { |
Lines 314-326
elsif ( $step && $step == 3 ) {
Link Here
|
314 |
# |
315 |
# |
315 |
#Do updatedatabase And report |
316 |
#Do updatedatabase And report |
316 |
|
317 |
|
317 |
if ( ! defined $ENV{PERL5LIB} ) { |
318 |
if ( ! defined $ENV{PERL5LIB} ) { |
318 |
my $find = "C4/Context.pm"; |
319 |
my $find = "C4/Context.pm"; |
319 |
my $path = $INC{$find}; |
320 |
my $path = $INC{$find}; |
320 |
$path =~ s/\Q$find\E//; |
321 |
$path =~ s/\Q$find\E//; |
321 |
$ENV{PERL5LIB} = "$path:$path/installer"; |
322 |
$ENV{PERL5LIB} = "$path:$path/installer"; |
322 |
warn "# plack? inserted PERL5LIB $ENV{PERL5LIB}\n"; |
323 |
warn "# plack? inserted PERL5LIB $ENV{PERL5LIB}\n"; |
323 |
} |
324 |
} |
324 |
|
325 |
|
325 |
my $now = POSIX::strftime( "%Y-%m-%dT%H:%M:%S", localtime() ); |
326 |
my $now = POSIX::strftime( "%Y-%m-%dT%H:%M:%S", localtime() ); |
326 |
my $logdir = C4::Context->config('logdir'); |
327 |
my $logdir = C4::Context->config('logdir'); |