mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-23 21:45:56 +01:00
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" \
|
||||
"main"
|
||||
$STD apt install -y elasticsearch
|
||||
echo "-Xms2g" >>/etc/elasticsearch/jvm.options
|
||||
echo "-Xmx2g" >>/etc/elasticsearch/jvm.options
|
||||
sed -i 's/^-Xms.*/-Xms2g/' /etc/elasticsearch/jvm.options
|
||||
sed -i 's/^-Xmx.*/-Xmx2g/' /etc/elasticsearch/jvm.options
|
||||
$STD /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment -b
|
||||
systemctl daemon-reload
|
||||
systemctl enable -q elasticsearch
|
||||
systemctl restart -q elasticsearch
|
||||
msg_ok "Setup Elasticsearch"
|
||||
|
||||
Reference in New Issue
Block a user