Bugzilla – Attachment 114902 Details for
Bug 27348
Error defining INDEXER_PARAMS in /etc/default/koha-common
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27348: Fix test on INDEXER_PARAMS in koha-indexer
Bug-27348-Fix-test-on-INDEXERPARAMS-in-koha-indexe.patch (text/plain), 1.39 KB, created by
David Cook
on 2021-01-07 00:23:27 UTC
(
hide
)
Description:
Bug 27348: Fix test on INDEXER_PARAMS in koha-indexer
Filename:
MIME Type:
Creator:
David Cook
Created:
2021-01-07 00:23:27 UTC
Size:
1.39 KB
patch
obsolete
>From 61bd044cd9e667e457dfa2eff9e7784a0415993a Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Thu, 7 Jan 2021 00:22:03 +0000 >Subject: [PATCH] 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" >--- > debian/scripts/koha-indexer | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/debian/scripts/koha-indexer b/debian/scripts/koha-indexer >index 62efb1cd85..03060f69a0 100755 >--- a/debian/scripts/koha-indexer >+++ b/debian/scripts/koha-indexer >@@ -217,7 +217,7 @@ if [ $INDEXER_TIMEOUT -lt 1 ]; then > INDEXER_TIMEOUT=5 > fi > >-if [ -z $INDEXER_PARAMS ]; then >+if [ -z "$INDEXER_PARAMS" ]; then > # Default to the parameters required by rebuild_zebra.pl > INDEXER_PARAMS="-daemon -sleep $INDEXER_TIMEOUT $DEBUG" > fi >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27348
:
114902
|
114903
|
121620
|
121621
|
121861
|
121862