|
Lines 48-55
$ENV{'__DB_PORT__'} = C4::Context->config('port') // '3306';
Link Here
|
| 48 |
$ENV{'__DB_USER__'} = C4::Context->config('user') // 'kohaadmin'; |
48 |
$ENV{'__DB_USER__'} = C4::Context->config('user') // 'kohaadmin'; |
| 49 |
$ENV{'__DB_PASS__'} = C4::Context->config('pass') // 'katikoan'; |
49 |
$ENV{'__DB_PASS__'} = C4::Context->config('pass') // 'katikoan'; |
| 50 |
|
50 |
|
| 51 |
my @files = ( "$source/etc/koha-conf.xml", |
51 |
my @files = ( |
| 52 |
); |
52 |
"$source/etc/koha-conf.xml", |
|
|
53 |
"$source/etc/log4perl.conf", |
| 54 |
); |
| 53 |
|
55 |
|
| 54 |
find(sub { push @files, $File::Find::name if ( -f $File::Find::name ); }, "$source/etc/zebradb"); |
56 |
find(sub { push @files, $File::Find::name if ( -f $File::Find::name ); }, "$source/etc/zebradb"); |
| 55 |
|
57 |
|
|
Lines 57-62
foreach my $file (@files) {
Link Here
|
| 57 |
my $target = "$file"; |
59 |
my $target = "$file"; |
| 58 |
$target =~ s#$source#$destination#; |
60 |
$target =~ s#$source#$destination#; |
| 59 |
$target =~ s#etc/zebradb#etc/koha/zebradb#; |
61 |
$target =~ s#etc/zebradb#etc/koha/zebradb#; |
|
|
62 |
$target =~ s#etc/log4perl\.conf#etc/koha/log4perl.conf#; |
| 60 |
unlink($target); |
63 |
unlink($target); |
| 61 |
make_path(dirname($target)); |
64 |
make_path(dirname($target)); |
| 62 |
copy("$file", "$target"); |
65 |
copy("$file", "$target"); |
| 63 |
- |
|
|