]> git.koha-community.org Git - koha.git/commit
Bug 19465: Add --elasticsearch-server option to koha-create
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 Oct 2017 18:59:25 +0000 (15:59 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 13 Jan 2020 22:31:21 +0000 (22:31 +0000)
commit889cefabaf5412835180476f6a485fcf86cb9ec5
tree9d0ca6f06b9f1aa259a76037d9715f6a5456797d
parent1bafa0e1eab3e93785a637745a2028e6866429ce
Bug 19465: Add --elasticsearch-server option to koha-create

This patch adds the --elasticsearch-server option switch to koha-create.
It allows choosing a different Elasticsearch configuration. It defaults
to the current 'localhost:9200' value.

To test:
- Apply this patches
- Run:
  $ reset_all
  $ man koha-create
=> SUCCESS: The man page shows correct information about the added
option switch
- Run:
  $ sudo koha-create --create-db test
=> SUCCESS: /etc/koha/sites/test/koha-conf.xml contains the default
   value (i.e. the current behaviour is kept)
- Run:
  $ sudo koha-create --create-db --elasticsearch-server tomas:1234 test2
=> SUCCESS: /etc/koha/sites/test2/koha-conf.xml contains the passed
   value in the <elasticsearch><server> section.
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 0453ec44b2531dceaf58e1b1cfb83ea24f84e52c)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
debian/scripts/koha-create
debian/templates/koha-conf-site.xml.in