]> git.koha-community.org Git - koha.git/commit
Bug 27348: Fix test on INDEXER_PARAMS in koha-indexer
authorDavid Cook <dcook@prosentient.com.au>
Thu, 7 Jan 2021 00:22:03 +0000 (00:22 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 2 Aug 2021 19:57:23 +0000 (09:57 -1000)
commitb9ce6ed5afecc931438cc811ba73b623a4f8325c
tree30a3e1eaf11ce3d9a04a776a921cae671c7f9e33
parent9cfb5a566884d2c5780ddaa363c007d53553fbba
Bug 27348: Fix test on INDEXER_PARAMS in koha-indexer

koha-indexer doesn't test INDEXER_PARAMS correctly which causes errors
to display when stopping/starting the daemon.

This patch fixes the test so that the variable is tested as a string,
so that no errors are created and the params are passed correctly.

Test plan:
0. Apply patch
1. vi /etc/default/koha-common
2. Add the following to the bottom of the file:
INDEXER_PARAMS="-daemon -sleep 6"
3. cp debian/scripts/koha-indexer /usr/sbin/koha-indexer
4. koha-indexer --stop kohadev
5. Note no errors
6. koha-indexer --start kohadev
7. Note no errors
8. ps -efww | grep "indexer"
9. Note that rebuild_zebra.pl has the arguments "-daemon -sleep 6"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 93bbacc541e6df581ff6c2d4670d706f9013f6c4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
debian/scripts/koha-indexer