From b9f4e6c8bdff12ef00e6b83032bcb6efeb9fae42 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 20 Feb 2026 22:52:28 +0100 Subject: [PATCH] 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 --- install/zammad-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/zammad-install.sh b/install/zammad-install.sh index e23f1565d..53d7a38e0 100644 --- a/install/zammad-install.sh +++ b/install/zammad-install.sh @@ -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"