This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
2022-05-11 18:51:20 +00:00

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