Skip to content
Snippets Groups Projects
Commit fa5a454a authored by l.osullivan's avatar l.osullivan Committed by Demian Katz
Browse files

Add SOLR_HOME variable for non-standard solr instances

parent 388c6e90
No related merge requests found
......@@ -10,11 +10,18 @@ else
JAVA="java"
fi
if [ "$SOLR_HOME" ]
then
SOLR_HOME="$SOLR_HOME"
else
SOLR_HOME="`dirname $0`/solr"
fi
set -e
set -x
cd "`dirname $0`/import"
CLASSPATH="browse-indexing.jar:../solr/lib/*"
CLASSPATH="browse-indexing.jar:${SOLR_HOME}/lib/*"
# make index work with replicated index
# current index is stored in the last line of index.properties
......@@ -38,9 +45,9 @@ function locate_index
eval $targetVar="$indexDir/$subDir"
}
locate_index "bib_index" "../solr/biblio"
locate_index "auth_index" "../solr/authority"
index_dir="../solr/alphabetical_browse"
locate_index "bib_index" "${SOLR_HOME}/biblio"
locate_index "auth_index" "${SOLR_HOME}/authority"
index_dir="${SOLR_HOME}/alphabetical_browse"
mkdir -p "$index_dir"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment