Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update installer for koha-conf.xml <basedir> directive

  • Loading branch information...
commit ecc8e2c4720e49274a8f10827e53883411ce4156 1 parent 113cd22
@ctfliblime ctfliblime authored
View
7 Makefile.PL
@@ -394,9 +394,9 @@ my %config_defaults = (
'DB_USER' => 'kohaadmin',
'DB_PASS' => 'katikoan',
'INSTALL_ZEBRA' => 'yes',
- 'INSTALL_SRU' => 'yes',
+ 'INSTALL_SRU' => 'no',
'INSTALL_PAZPAR2' => 'no',
- 'AUTH_INDEX_MODE' => 'grs1',
+ 'AUTH_INDEX_MODE' => 'dom',
'ZEBRA_MARC_FORMAT' => 'marc21',
'ZEBRA_LANGUAGE' => 'en',
'ZEBRA_USER' => 'kohauser',
@@ -437,7 +437,7 @@ elsif ( $^O eq 'cygwin' ) {
$config_defaults{'INSTALL_BASE'} = 'c:/progra~1/koha'; # Use 8.3 names to be safe...
}
else {
- $config_defaults{'INSTALL_MODE'} = 'standard';
+ $config_defaults{'INSTALL_MODE'} = 'dev';
$config_defaults{'INSTALL_BASE'} = '/usr/share/koha';
}
@@ -1286,6 +1286,7 @@ sub get_target_directories {
$dirmap{'ZEBRA_RUN_DIR'} = File::Spec->catdir(@basedir, $package, 'var', 'run', 'zebradb');
} elsif ($mode eq 'dev') {
my $curdir = File::Spec->rel2abs(File::Spec->curdir());
+ $dirmap{'KOHA_BASE_DIR'} = File::Spec->catdir($curdir);
$dirmap{'INTRANET_CGI_DIR'} = File::Spec->catdir($curdir, 'cgi');
$skipdirs{'INTRANET_CGI_DIR'} = 1;
$dirmap{'INTRANET_TMPL_DIR'} = File::Spec->catdir($curdir, 'koha-tmpl', 'intranet-tmpl');
View
1  etc/koha-conf.xml
@@ -183,6 +183,7 @@ __PAZPAR2_TOGGLE_XML_POST__
<biblioservershadow>1</biblioservershadow>
<authorityserver>authorities</authorityserver>
<authorityservershadow>1</authorityservershadow>
+ <basedir>__KOHA_BASE_DIR__</basedir>
<intranetdir>__INTRANET_CGI_DIR__</intranetdir>
<opacdir>__OPAC_CGI_DIR__/opac</opacdir>
<opachtdocs>__OPAC_TMPL_DIR__</opachtdocs>
View
1  installer/rewrite-config.PL
@@ -102,6 +102,7 @@ $prefix = $ENV{'INSTALL_BASE'} || "/usr";
"__KOHA_GROUP__" => "koha",
"__ZEBRA_PASS__" => "zebrastripes",
"__ZEBRA_USER__" => "kohauser",
+ '__KOHA_BASE_DIR__' => $prefix,
'__INTRANET_CGI_DIR__' => "$prefix/intranet/cgi-bin",
'__INTRANET_TMPL_DIR__' => "$prefix/intranet/templates",
'__INTRANET_WWW_DIR__' => "$prefix/intranet/www",
Please sign in to comment.
Something went wrong with that request. Please try again.