From a42c3782c6d66ea78e90e67baedd12dccb2a5597 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 15 Jun 2016 13:43:41 +0200 Subject: [PATCH] Bug 16733: Adjust koha-indexer [1] Add a call to the new adjust_paths_dev_install [2] Differentiate location of rebuild_zebra.pl NOTE: The scripts assume koha-functions.sh to be in /usr/share/koha/bin. Finding a better location for this shell library may be hard. Test plan: Run koha-indexer for a regular package install or a dev install. Signed-off-by: Marcel de Rooy Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- debian/scripts/koha-indexer | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/debian/scripts/koha-indexer b/debian/scripts/koha-indexer index 01e544a411..60b551a0aa 100755 --- a/debian/scripts/koha-indexer +++ b/debian/scripts/koha-indexer @@ -177,12 +177,19 @@ while [ $# -gt 0 ]; do done +# Optionally use alternative paths for a dev install +adjust_paths_dev_install $1 + # Check if an alternate indexer has been set if [ ! -z $ALTERNATE_INDEXER_DAEMON ]; then INDEXER_DAEMON="$ALTERNATE_INDEXER_DAEMON" else # We default to rebuild_zebra.pl if no alternate indexer set - INDEXER_DAEMON="${KOHA_HOME}/bin/migration_tools/rebuild_zebra.pl" + if [ "$DEV_INSTALL" = "" ]; then + INDEXER_DAEMON="${KOHA_HOME}/bin/migration_tools/rebuild_zebra.pl" + else + INDEXER_DAEMON="${KOHA_HOME}/misc/migration_tools/rebuild_zebra.pl" + fi fi if [ $INDEXER_TIMEOUT -lt 1 ]; then @@ -195,10 +202,7 @@ if [ -z $INDEXER_PARAMS ]; then INDEXER_PARAMS="-daemon -sleep $INDEXER_TIMEOUT" fi -if [ -z $PERL5LIB ]; then - PERL5LIB="/usr/share/koha/lib" -fi - +# PERL5LIB has been read from etc/default export PERL5LIB if [ $# -gt 0 ]; then -- 2.39.5