mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02:00
Update 51-elasticsearch
This commit is contained in:
@@ -49,15 +49,15 @@ else
|
|||||||
$LAUNCHER fulltextsearch_elasticsearch:configure "{\"analyzer_tokenizer\":\"standard\"}"
|
$LAUNCHER fulltextsearch_elasticsearch:configure "{\"analyzer_tokenizer\":\"standard\"}"
|
||||||
|
|
||||||
# Is server detected
|
# Is server detected
|
||||||
if [ curl $HOST:9200 ] &>/dev/null; then
|
# if [ curl $HOST:9200 ] &>/dev/null; then
|
||||||
# Wait further for cache for index to work
|
# Wait further for cache for index to work
|
||||||
countdown "Waiting for a few seconds before indexing starts..." "10"
|
countdown "Waiting for a few seconds before indexing starts..." "10"
|
||||||
if $LAUNCHER fulltextsearch:index </dev/null; then
|
if $LAUNCHER fulltextsearch:index </dev/null; then
|
||||||
bashio::log.info "Full Text Search was successfully installed!"
|
bashio::log.info "Full Text Search was successfully installed!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
# else
|
||||||
bashio::log.warning "Elasticsearch can't connect. Please manually define its server in the options"
|
# bashio::log.warning "Elasticsearch can't connect. Please manually define its server in the options"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user