Lines 322-328
elsif ( $step && $step == 3 ) {
Link Here
|
322 |
|
322 |
|
323 |
my $now = POSIX::strftime( "%Y-%m-%dT%H:%M:%S", localtime() ); |
323 |
my $now = POSIX::strftime( "%Y-%m-%dT%H:%M:%S", localtime() ); |
324 |
my $logdir = C4::Context->config('logdir'); |
324 |
my $logdir = C4::Context->config('logdir'); |
325 |
my ( $logfilepath, $logfilepath_errors ) = ( chk_log($logdir, "updatedatabase_$now"), chk_log($logdir, "updatedatabase-error_$now") ); |
325 |
my $dbversion = C4::Context->preference('Version'); |
|
|
326 |
my $kohaversion = C4::Context->KOHAVERSION; |
327 |
$kohaversion =~ s/(.*\..*)\.(.*)\.(.*)/$1$2$3/; |
328 |
|
329 |
my $filename_suffix = join '_', $now, $dbversion, $kohaversion; |
330 |
my ( $logfilepath, $logfilepath_errors ) = ( chk_log($logdir, "updatedatabase_$filename_suffix"), chk_log($logdir, "updatedatabase-error_$filename_suffix") ); |
326 |
|
331 |
|
327 |
my $cmd = C4::Context->config("intranetdir") . "/installer/data/$info{dbms}/updatedatabase.pl >> $logfilepath 2>> $logfilepath_errors"; |
332 |
my $cmd = C4::Context->config("intranetdir") . "/installer/data/$info{dbms}/updatedatabase.pl >> $logfilepath 2>> $logfilepath_errors"; |
328 |
|
333 |
|
329 |
- |
|
|