From 119a0282578052c2db1e0a549e4148ab5173d848 Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Tue, 28 Jun 2016 19:41:54 -0300
Subject: [PATCH] Bug 16830: Remove -x usage on koha-indexer

This patch just does that, and removes it from the comment on /etc/default/koha-common

To test:
- Apply the patch
- Run:
  $ vagrant ssh ; cd kohaclone
  $ sudo debian/scripts/koha-indexer --stop kohadev
  $ sudo debian/scripts/koha-indexer --start kohadev
=> SUCCESS: Verify no warning is shown on the indexer-output.log file
- Sign off

https://bugs.koha-community.org/show_bug.cgi?id=16830

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
---
 debian/koha-common.default  | 2 +-
 debian/scripts/koha-indexer | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/koha-common.default b/debian/koha-common.default
index 41805a1..5c553e2 100644
--- a/debian/koha-common.default
+++ b/debian/koha-common.default
@@ -30,7 +30,7 @@ USE_INDEXER_DAEMON="yes"
 INDEXER_TIMEOUT=5
 
 # Parameters to be passed to the indexer daemon. Useful for alternate indexers.
-# Defaults to INDEXER_PARAMS="-daemon -x -sleep $INDEXER_TIMEOUT"
+# Defaults to INDEXER_PARAMS="-daemon -sleep $INDEXER_TIMEOUT"
 #
 # INDEXER_PARAMS=""
 
diff --git a/debian/scripts/koha-indexer b/debian/scripts/koha-indexer
index dd3f799..01e544a 100755
--- a/debian/scripts/koha-indexer
+++ b/debian/scripts/koha-indexer
@@ -192,7 +192,7 @@ fi
 
 if [ -z $INDEXER_PARAMS ]; then
     # Default to the parameters required by rebuild_zebra.pl
-    INDEXER_PARAMS="-daemon -x -sleep $INDEXER_TIMEOUT"
+    INDEXER_PARAMS="-daemon -sleep $INDEXER_TIMEOUT"
 fi
 
 if [ -z $PERL5LIB ]; then
-- 
2.1.4