Commit graph

29 commits

Author SHA1 Message Date
Marc Chantreux
9902f24c13 don't try to resolve if WEBSERVER_IP is set and now use WEBSERVER_HOST.
as it crashed the installer when DNS doesn't respond as expected.

it will now use the WEBSERVER_HOST described in the doc but unused in the script.

TODO:

- lot of koha-httpd.conf generation is useless if you plan to use vhosts strategy
- on some recent linux distributions, $(getent hosts `hostname`) will give us
  127.0.0.1. this is to not mess up the MTA when there is no network. Don't
  you think there would be an error message in this case?
- default domain is localdomain .. this is not a good idea but i haven't a better one.
  can a network guru fix that ?

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-04-28 06:51:45 -05:00
Jesse Weaver
4712745527 fix for bug 2528: installation fails with confusing error message
This makes the dns check happen earlier, and fail humanely if there is a problem.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2008-08-19 13:40:25 -05:00
Galen Charlton
2fafa1424b kohabug 1776 - try to locate Zebra during install
If running Zebra, try to locate zebrasrv and zebraidx
so that koha-zebra-ctl.sh can point to a functioning
zebrasrv.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-22 17:59:00 -05:00
Galen Charlton
149ece8541 added RUN_DATABASE_TESTS to install log
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-22 17:58:59 -05:00
Galen Charlton
6835e192f4 kohabug 1776 - disable mergeserver if not installing PazPar2
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-21 18:17:33 -05:00
Galen Charlton
20f1c41ca7 install: added --prev-install-log option to Makefile.PL
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-15 08:30:51 -06:00
Galen Charlton
82daf0a5bc installer: added install log
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-15 08:30:49 -06:00
Galen Charlton
70dccacee5 FRBR: configure PazPar2 during installation
Also added koha-pazpar2-ctl.sh to start and stop
PazPar2.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-11 16:35:18 -06:00
Galen Charlton
1c0401e867 authorities - enabled DOM indexing
All new authority features will be based on the DOM indexing.

To update an existing installation, do the following:

[1] run perl Makefile.PL
[2] make
[3] make update_zebra_conf
[4] copy the new koha-conf.xml to $KOHA_CONF

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-02-08 05:48:51 -06:00
Joshua Ferraro
bbd043f155 adding three new variables for installation:
'ZEBRA_SRU_HOST'    => 'localhost',
  'ZEBRA_SRU_BIBLIOS_PORT'    => '9998',
  'ZEBRA_SRU_AUTHORITIES_PORT'    => '9999',

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-01-03 21:28:27 -06:00
Galen Charlton
e6ee69b4a3 various installer changes
[1] Map new directory misc/bin to SCRIPT_DIR
    instead of SCRIPT_DIR/bin.
[2] rewrite-config.PL no longer removes execute mode
[3] Add new Zebra startup script to rewrite-config.PL
    list.
[4] Added KOHA_USER and KOHA_GROUP to rewrite-config.PL

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-12-22 18:59:04 -06:00
Galen Charlton
1df0f05ac7 installer: make rewrite-config.PL change only defined parameters
Previously, it tried to slurp up all text between two
occurences of '__'
2007-12-17 09:13:53 -06:00
Galen Charlton
1b71360c5c installer: various changes
* renamed EXAMPLE_DIR to MISC_DIR
* assigned installation targets for a couple more files
* changed ZOOM module dependency back to Net::Z3950::ZOOM
  (installing that module from CPAN will also install ZOOM,
   and ZOOM.pm does not export $VERSION for the dependency
   check).
* more work to make 'single' and 'dev' install modes function
* set permissions of installed files -- all files now
  writeable by the Koha user
2007-12-17 09:13:53 -06:00
Galen Charlton
0f5fa1bf2d installer: further moves of zebra configuration files
All Zebra config files are now installed by default.  The
ones specific to a MARC format or language are selected
by appropriate values in profilePath in zebra-biblios.cfg
and zebra-authorities.cfg.  Changing the MARC format
or indexing language can now be done by editing
profilePath.
2007-12-17 09:13:52 -06:00
Galen Charlton
5befdd2cd3 installer (part 2): more work
* plain 'make' now stages everything to blib, leaving
  actual installation to 'make install'
* adjusted rewrite-config.PL and config files
  for new subtitution variables
* added default SetEnv Perl5Lib to
  koha-httpd.conf
2007-12-17 09:13:52 -06:00
Chris Cormack
5baba50aed Shifted the opac out of koha so its now /usr/lib/cgi-bin/opac and /usr/lib/cgi-bin/koha by default, rewrite-config.PL and koha-httpd.conf updated
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:52 -06:00
Galen Charlton
c938a23bb9 completed (possibly temporary) rollback of Chris Nighswonger's Perl lib change 2007-12-17 09:13:52 -06:00
Galen Charlton
f23c9f3af5 removed line as a partial revert of the change of prefix from /usr to /usr/local 2007-12-17 09:13:52 -06:00
Chris Cormack
d1f9665665 Now using install_base instead of prefix
[Galen's note: during patch merge, ended up setting default
 INSTALL_BASE back to /usr instead of /usr/local.  This
 needs to be examined again to see if C4 perl modules
 should go under /usr/local/lib instead of /usr/lib
 in Debian.]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2007-12-17 09:13:51 -06:00
Chris Nighswonger
9db489fa0f Second try:Corrected bad pathing for default Perl base dir. Default now matches Debian Perl.
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-26 09:03:40 -06:00
Chris Nighswonger
8a5e2f271e Corrected bad pathing for default Perl base dir. Default now matches Debian Perl.
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-21 18:07:12 -06:00
Chris Nighswonger
ba604d41a2 Added env var MARCFLAVOUR to spec marc to be installed for zebra
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 17:33:13 -06:00
Chris Nighswonger
98782b85e7 Correct comments and POD to reflect keyword additions/changes
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-13 12:20:09 -06:00
Chris Nighswonger
bc4699ca64 Changes to add dbms type and port & rename db vars for multi-dbms
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-12 17:40:20 -06:00
MJ Ray
243ec54e9a Move many files to more FHS-like paths
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-07 04:47:12 -05:00
MJ Ray
cecd7ef0f4 BUGFIX: set all configuration keys - die terminated the hash
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 17:14:52 -05:00
MJ Ray
61190e9152 New installation instructions and release notes.
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 17:14:48 -05:00
MJ Ray
28695e9166 Add missing auto_install features to new installer
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 17:14:45 -05:00
MJ Ray
e449c139ff Add configuration file helper to the installer
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-09-06 17:14:40 -05:00