Fix Zebra server not starting

This commit is contained in:
Theodoros Grammenos 2023-02-18 13:14:43 +02:00
parent ba293fbf69
commit b388164147
No known key found for this signature in database
GPG key ID: D25FBC869FCFEBDE
7 changed files with 18 additions and 8 deletions

View file

@ -30,7 +30,7 @@ MB_PARAMS="--mb-host ${MB_HOST} --mb-port ${MB_PORT} --mb-user ${MB_USER} --mb-p
# Configure the elasticsearch server
ES_PARAMS=""
if [[ "${ELASTICSEARCH_HOST}" != "" ]]
if [[ "${USE_ELASTICSEARCH}" = "true" ]]
then
ES_PARAMS="--elasticsearch-server ${ELASTICSEARCH_HOST}"
fi
@ -45,12 +45,8 @@ else
fi
# Configure search daemon
if [ "${USE_ELASTICSEARCH}" != "true" ]
if [ "${USE_ELASTICSEARCH}" = "true" ]
then
# Start zebra services with s6
touch /etc/s6-overlay/s6-rc.d/user/contents.d/zebra-indexer
touch /etc/s6-overlay/s6-rc.d/user/contents.d/zebra-server
else
koha-elasticsearch --rebuild -p $(grep -c ^processor /proc/cpuinfo) ${KOHA_INSTANCE} &
fi