]> git.koha-community.org Git - koha.git/commit
Bug 20745: koha-zebra doesn't return the correct error codes
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 10 May 2018 15:37:53 +0000 (12:37 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 9 Jul 2018 10:33:48 +0000 (12:33 +0200)
commitbc120aa5f9cc8579aa3d3a8913098c703a5b21b8
tree3780bb66d4667ed1cc49f46a406bb313149142cc
parent70f75b7e3caaaa54df2f45dd0a1b5c452e7830ca
Bug 20745: koha-zebra doesn't return the correct error codes

This patch makes koha-zebra return 0 (or 1) even when verbose mode is
off. This made koha-zebra --start always return a failure even when the
daemon was correctly launched.

To test:
- Have Zebra running for kohadev instance on your KohaDevBox
- Run:
  $ sudo koha-zebra --stop kohadev && echo yay || echo doh
=> FAIL: 'doh' is printed
- Run:
  $ sudo koha-zebra --start kohadev e&& echo yay || echo doh
=> FAIL: 'doh' is printed as well
- Apply this patch
- Run:
  $ sudo perl misc4dev/cp_debian_files.pl
  $ sudo koha-zebra --stop kohadev && echo yay || echo doh
=> SUCCESS: 'yay' is printed
- Run:
  $ sudo koha-zebra --start kohadev e&& echo yay || echo doh
=> SUCCESS: 'yay' is printed
- Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6ea48ca9345862fc655e0ef418ea91d040ead03a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/scripts/koha-zebra