View | Details | Raw Unified | Return to bug 17951
Collapse All | Expand All

(-)a/Makefile.PL (-1 / +10 lines)
Lines 101-106 Makefile.PL - Koha packager and installer Link Here
101
    --font_dir                   Location of fonts (e.g. /usr/share/fonts/truetype/ttf-dejavu)
101
    --font_dir                   Location of fonts (e.g. /usr/share/fonts/truetype/ttf-dejavu)
102
    --run_database_tests         Run database dependent tests (yes, no)
102
    --run_database_tests         Run database dependent tests (yes, no)
103
    --install_base               Base directory of installation (e.g. /usr/share/koha)
103
    --install_base               Base directory of installation (e.g. /usr/share/koha)
104
    --template-cache-dir         Specify a template cache directory (e.g. /var/cache/koha)
104
    --help                       Display this help message
105
    --help                       Display this help message
105
106
106
=head1 DESCRIPTION
107
=head1 DESCRIPTION
Lines 485-490 my %config_defaults = ( Link Here
485
  'USE_MEMCACHED'     => 'no',
486
  'USE_MEMCACHED'     => 'no',
486
  'MEMCACHED_SERVERS' => '127.0.0.1:11211',
487
  'MEMCACHED_SERVERS' => '127.0.0.1:11211',
487
  'MEMCACHED_NAMESPACE' => 'KOHA',
488
  'MEMCACHED_NAMESPACE' => 'KOHA',
489
  'TEMPLATE_CACHE_DIR' => '/tmp/koha',
488
  'FONT_DIR'          => '/usr/share/fonts/truetype/ttf-dejavu'
490
  'FONT_DIR'          => '/usr/share/fonts/truetype/ttf-dejavu'
489
);
491
);
490
492
Lines 546-551 my $cli_koha_use_memcached = ""; Link Here
546
my $cli_koha_font_dir = "";
548
my $cli_koha_font_dir = "";
547
my $cli_koha_run_database_tests = "";
549
my $cli_koha_run_database_tests = "";
548
my $cli_koha_install_base = "";
550
my $cli_koha_install_base = "";
551
my $cli_koha_template_cache_dir = "";
549
Getopt::Long::Configure('pass_through');
552
Getopt::Long::Configure('pass_through');
550
my $results = GetOptions(
553
my $results = GetOptions(
551
    "prev-install-log=s"           => \$koha_install_log,
554
    "prev-install-log=s"           => \$koha_install_log,
Lines 574-579 my $results = GetOptions( Link Here
574
    "font_dir=s"                   => \$cli_koha_font_dir,
577
    "font_dir=s"                   => \$cli_koha_font_dir,
575
    "run_database_tests=s"         => \$cli_koha_run_database_tests,
578
    "run_database_tests=s"         => \$cli_koha_run_database_tests,
576
    "install_base=s"               => \$cli_koha_install_base,
579
    "install_base=s"               => \$cli_koha_install_base,
580
    "template-cache-dir=s"         => \$cli_koha_template_cache_dir,
577
    "help"                         => sub { HelpMessage(0) },
581
    "help"                         => sub { HelpMessage(0) },
578
) or HelpMessage(1);
582
) or HelpMessage(1);
579
583
Lines 861-867 sub get_cli_values { Link Here
861
        USE_MEMCACHED              => $cli_koha_use_memcached,
865
        USE_MEMCACHED              => $cli_koha_use_memcached,
862
        FONT_DIR                   => $cli_koha_font_dir,
866
        FONT_DIR                   => $cli_koha_font_dir,
863
        RUN_DATABASE_TESTS         => $cli_koha_run_database_tests,
867
        RUN_DATABASE_TESTS         => $cli_koha_run_database_tests,
864
        INSTALL_BASE               => $cli_koha_install_base
868
        INSTALL_BASE               => $cli_koha_install_base,
869
        TEMPLATE_CACHE_DIR         => $cli_koha_template_cache_dir
865
    };
870
    };
866
    foreach my $key (keys %{$map}) {
871
    foreach my $key (keys %{$map}) {
867
        $values->{$key} = $map->{$key} if ($map->{$key});
872
        $values->{$key} = $map->{$key} if ($map->{$key});
Lines 1242-1247 Memcached namespace?); Link Here
1242
  }
1247
  }
1243
1248
1244
  $msg = q(
1249
  $msg = q(
1250
Template cache directory?);
1251
  $config{'TEMPLATE_CACHE_DIR'} = _get_value('TEMPLATE_CACHE_DIR', $msg, $defaults->{'TEMPLATE_CACHE_DIR'}, $valid_values, $install_log_values);
1252
1253
  $msg = q(
1245
Path to DejaVu fonts?);
1254
Path to DejaVu fonts?);
1246
  $config{'FONT_DIR'} = _get_value('FONT_DIR', $msg, $defaults->{'FONT_DIR'}, $valid_values, $install_log_values);
1255
  $config{'FONT_DIR'} = _get_value('FONT_DIR', $msg, $defaults->{'FONT_DIR'}, $valid_values, $install_log_values);
1247
1256
(-)a/etc/koha-conf.xml (-4 / +1 lines)
Lines 122-131 __PAZPAR2_TOGGLE_XML_POST__ Link Here
122
 <log4perl_conf>__KOHA_CONF_DIR__/log4perl.conf</log4perl_conf>
122
 <log4perl_conf>__KOHA_CONF_DIR__/log4perl.conf</log4perl_conf>
123
 <memcached_servers>__MEMCACHED_SERVERS__</memcached_servers>
123
 <memcached_servers>__MEMCACHED_SERVERS__</memcached_servers>
124
 <memcached_namespace>__MEMCACHED_NAMESPACE__</memcached_namespace>
124
 <memcached_namespace>__MEMCACHED_NAMESPACE__</memcached_namespace>
125
 <!-- Uncomment the following line if you want to use template caching
125
 <template_cache_dir>__TEMPLATE_CACHE_DIR__</template_cache_dir>
126
      That will bring a performance boost
127
      <template_cache_dir>/tmp</template_cache_dir>
128
 -->
129
126
130
 <!-- Secret passphrase used by Mojolicious for signed cookies -->
127
 <!-- Secret passphrase used by Mojolicious for signed cookies -->
131
 <api_secret_passphrase>CHANGEME</api_secret_passphrase>
128
 <api_secret_passphrase>CHANGEME</api_secret_passphrase>
(-)a/rewrite-config.PL (-1 / +1 lines)
Lines 153-158 $prefix = $ENV{'INSTALL_BASE'} || "/usr"; Link Here
153
  "__MEMCACHED_SERVERS__" => "",
153
  "__MEMCACHED_SERVERS__" => "",
154
  "__MEMCACHED_NAMESPACE__" => "",
154
  "__MEMCACHED_NAMESPACE__" => "",
155
  "__FONT_DIR__" => "/usr/share/fonts/truetype/ttf-dejavu",
155
  "__FONT_DIR__" => "/usr/share/fonts/truetype/ttf-dejavu",
156
  "__TEMPLATE_CACHE_DIR__" => "/tmp/koha"
156
);
157
);
157
158
158
# Override configuration from the environment
159
# Override configuration from the environment
159
- 

Return to bug 17951