From 8d97e05a3c4300ecad094d5a005be02c79300c87 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 24 Feb 2015 10:54:57 -0300 Subject: [PATCH] [PASSED QA] Bug 13753: koha-indexer contains invalid statement 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 Signed-off-by: Katrin Fischer --- 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 c7c2858..adf5e4e 100755 --- a/debian/scripts/koha-indexer +++ b/debian/scripts/koha-indexer @@ -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 -- 1.9.1