Bugzilla – Attachment 38002 Details for
Bug 13876
Permission issues on updating via installer - dev installations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13876: Add the from => to versions in the filenames
Bug-13876-Add-the-from--to-versions-in-the-filenam.patch (text/plain), 1.49 KB, created by
Jonathan Druart
on 2015-04-17 07:52:33 UTC
(
hide
)
Description:
Bug 13876: Add the from => to versions in the filenames
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-04-17 07:52:33 UTC
Size:
1.49 KB
patch
obsolete
>From 70bc9952736add7f96ffac9375be8a3fb4339559 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 17 Apr 2015 09:50:49 +0200 >Subject: [PATCH] Bug 13876: Add the from => to versions in the filenames > >Additionally to the datetime, it could be useful to have the version >numbers in the log filenames. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > installer/install.pl | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/installer/install.pl b/installer/install.pl >index e43caa0..1fbc685 100755 >--- a/installer/install.pl >+++ b/installer/install.pl >@@ -322,7 +322,12 @@ elsif ( $step && $step == 3 ) { > > my $now = POSIX::strftime( "%Y-%m-%dT%H:%M:%S", localtime() ); > my $logdir = C4::Context->config('logdir'); >- my ( $logfilepath, $logfilepath_errors ) = ( chk_log($logdir, "updatedatabase_$now"), chk_log($logdir, "updatedatabase-error_$now") ); >+ my $dbversion = C4::Context->preference('Version'); >+ my $kohaversion = C4::Context->KOHAVERSION; >+ $kohaversion =~ s/(.*\..*)\.(.*)\.(.*)/$1$2$3/; >+ >+ my $filename_suffix = join '_', $now, $dbversion, $kohaversion; >+ my ( $logfilepath, $logfilepath_errors ) = ( chk_log($logdir, "updatedatabase_$filename_suffix"), chk_log($logdir, "updatedatabase-error_$filename_suffix") ); > > my $cmd = C4::Context->config("intranetdir") . "/installer/data/$info{dbms}/updatedatabase.pl >> $logfilepath 2>> $logfilepath_errors"; > >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13876
:
37014
|
37022
|
37052
|
37053
|
37094
|
37095
|
37906
|
37965
|
37966
|
37999
|
38000
|
38001
|
38002
|
38004
|
38021
|
38022
|
38023