Bug 13753: koha-indexer contains invalid statement
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 24 Feb 2015 13:54:57 +0000 (10:54 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 2 Mar 2015 14:25:46 +0000 (15:25 +0100)
An incorrect conditional makes the indexer daemon fail to load.

To test:
- Enable the indexer daemon on packages [1]
- Restart koha-common:
  $ service koha-common restart
- Run
  $ ps waux | grep koha-indexer
=> FAIL: there's no reference to the rebuild_zebra.pl script
  (line should look like *rebuild_zebra.pl -daemon*)
   Run ps -ef | grep rebuild_zebra.pl too to make sure.
- Apply the patch, repeat the steps
=> SUCCESS: the rebuild_zebra.pl script is ran
- Sign off :-D

Thanks

Sponsored-by: Universidad Nacional de Cordoba
Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
debian/scripts/koha-indexer

index c7c2858..adf5e4e 100755 (executable)
@@ -175,7 +175,7 @@ while [ $# -gt 0 ]; do
 done
 
 # Check if an alternate indexer has been set
-if [ -z $ALTERNATE_INDEXER_DAEMON ]; then
+if [ -z $ALTERNATE_INDEXER_DAEMON ]; then
     INDEXER_DAEMON="$ALTERNATE_INDEXER_DAEMON"
 else
     # We default to rebuild_zebra.pl if no alternate indexer set