fix(zammad): fix Elasticsearch JVM config and add daemon-reload (#12125)
The JVM heap options were appended with >> which left the old defaults in place. Use sed to replace them instead. Also add the missing systemctl daemon-reload that ES requires after package installation before the service can be started. Closes #12111
This commit is contained in:
committed by
GitHub
parent
54031b56d6
commit
b9f4e6c8bd
@@ -28,9 +28,10 @@ setup_deb822_repo \
|
|||||||
"stable" \
|
"stable" \
|
||||||
"main"
|
"main"
|
||||||
$STD apt install -y elasticsearch
|
$STD apt install -y elasticsearch
|
||||||
echo "-Xms2g" >>/etc/elasticsearch/jvm.options
|
sed -i 's/^-Xms.*/-Xms2g/' /etc/elasticsearch/jvm.options
|
||||||
echo "-Xmx2g" >>/etc/elasticsearch/jvm.options
|
sed -i 's/^-Xmx.*/-Xmx2g/' /etc/elasticsearch/jvm.options
|
||||||
$STD /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment -b
|
$STD /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment -b
|
||||||
|
systemctl daemon-reload
|
||||||
systemctl enable -q elasticsearch
|
systemctl enable -q elasticsearch
|
||||||
systemctl restart -q elasticsearch
|
systemctl restart -q elasticsearch
|
||||||
msg_ok "Setup Elasticsearch"
|
msg_ok "Setup Elasticsearch"
|
||||||
|
|||||||
Reference in New Issue
Block a user