36 lines
633 B
Bash
Executable File
36 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z "$SOLR_HOST" ]]; then
|
|
echo "A SOLR_HOST environment variable is required"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ -z "$SOLR_PORT" ]]; then
|
|
SOLR_PORT=8983
|
|
fi
|
|
|
|
if [[ -z "$SOLR_PROTOCOL" ]]; then
|
|
SOLR_PROTOCOL=http
|
|
fi
|
|
|
|
if [[ -z "$SOLR_BASEPATH" ]]; then
|
|
SOLR_BASEPATH=/solr
|
|
fi
|
|
|
|
if [[ -z "$SOLR_BASEURL" ]]; then
|
|
SOLR_BASEURL=${SOLR_PROTOCOL}://${SOLR_HOST}:${SOLR_PORT}${SOLR_BASEPATH}
|
|
fi
|
|
echo "Solr Base URL: ${SOLR_BASEURL}"
|
|
|
|
if [[ -z "$SOLR_CORE" ]]; then
|
|
SOLR_CORE=alfresco
|
|
fi
|
|
|
|
if [[ -z "$SOLR_LOCALPATH" ]]; then
|
|
SOLR_LOCALPATH=/tmp
|
|
fi
|
|
|
|
if [[ -z "$SOLR_TEMPLATE" ]]; then
|
|
SOLR_TEMPLATE=rerank
|
|
fi
|