elastic search fix
This commit is contained in:
parent
7380c2b1fb
commit
791230c676
|
@ -790,6 +790,17 @@ if [ "${MYSQL_SERVER_EXTERNAL}" == "true" ]; then
|
|||
rm -f "${ONLYOFFICE_GOD_DIR}"/mysql.god;
|
||||
fi
|
||||
|
||||
#configure elasticsearch
|
||||
service elasticsearch stop
|
||||
/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment | echo y
|
||||
mkdir -p "$LOG_DIR/Index"
|
||||
mkdir -p "$ONLYOFFICE_DATA_DIR/Index"
|
||||
chown -R elasticsearch:elasticsearch "$ONLYOFFICE_DATA_DIR/Index"
|
||||
chown -R elasticsearch:elasticsearch "$LOG_DIR/Index"
|
||||
sed 's,#path.data: /path/to/data,path.data: '"${ONLYOFFICE_DATA_DIR}"'/Index/,' -i "/etc/elasticsearch/elasticsearch.yml"
|
||||
sed 's,#path.logs: /path/to/logs,path.logs: '"${LOG_DIR}"'/Index/,' -i "/etc/elasticsearch/elasticsearch.yml"
|
||||
service elasticsearch start
|
||||
|
||||
if [ "${ONLYOFFICE_MODE}" == "SERVICES" ]; then
|
||||
service nginx stop
|
||||
|
||||
|
@ -847,16 +858,6 @@ else
|
|||
service monoserveApiSystem restart
|
||||
fi
|
||||
|
||||
|
||||
#configure elasticsearch
|
||||
/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment | echo y
|
||||
mkdir -p "$LOG_DIR/Index"
|
||||
mkdir -p "$ONLYOFFICE_DATA_DIR/Index"
|
||||
chown -R elasticsearch:elasticsearch "$ONLYOFFICE_DATA_DIR/Index"
|
||||
chown -R elasticsearch:elasticsearch "$LOG_DIR/Index"
|
||||
sed 's,#path.data: /path/to/data,path.data: '"${ONLYOFFICE_DATA_DIR}"'/Index/,' -i "/etc/elasticsearch/elasticsearch.yml"
|
||||
sed 's,#path.logs: /path/to/logs,path.logs: '"${LOG_DIR}"'/Index/,' -i "/etc/elasticsearch/elasticsearch.yml"
|
||||
|
||||
if [ "${ONLYOFFICE_SERVICES_EXTERNAL}" == "true" ]; then
|
||||
rm -f "${ONLYOFFICE_GOD_DIR}"/onlyoffice.god;
|
||||
rm -f "${ONLYOFFICE_GOD_DIR}"/mail.god;
|
||||
|
@ -885,7 +886,6 @@ else
|
|||
|
||||
service onlyofficeSocketIO restart
|
||||
service onlyofficeFeed restart
|
||||
service elasticsearch restart
|
||||
service onlyofficeIndex restart
|
||||
service onlyofficeJabber restart
|
||||
service onlyofficeMailAggregator restart
|
||||
|
|
Loading…
Reference in New Issue