From ee5e5617faab573ccf3735a7e1b96975cfc80fef Mon Sep 17 00:00:00 2001 From: Maximiliano Ibarra <6089438+Machi3mfl@users.noreply.github.com> Date: Mon, 25 Sep 2023 16:05:12 -0300 Subject: [PATCH] [Backport 4.5.3-7.16] Fix install agent command on SUSE (#5932) Fix install agent command on SUSE (#5925) * fix(deploy-new-agent): install agent command on SUSE * changelog: add entry (cherry picked from commit b697a28ecd0d4eea54694f19e3e3c22676475290) Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com> --- CHANGELOG.md | 6 +++++- public/controllers/agent/components/register-agent.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c926cd68fc..d444e300f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,11 @@ All notable changes to the Wazuh app project will be documented in this file. - Support for Wazuh 4.5.3 -## Wazuh v4.5.2 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 02 +### Changed + +- Changed the command to install the agent on SUSE uses zypper [#5925](https://github.com/wazuh/wazuh-kibana-app/pull/5925) + +## Wazuh v4.5.2 - OpenSearch Dashboards 2.6.0 - Revision 02 ### Added diff --git a/public/controllers/agent/components/register-agent.js b/public/controllers/agent/components/register-agent.js index 90b11c34ac..176a1873ae 100644 --- a/public/controllers/agent/components/register-agent.js +++ b/public/controllers/agent/components/register-agent.js @@ -1042,7 +1042,7 @@ apk add wazuh-agent=${this.state.wazuhVersion}-r1`, amazonlinuxText: `sudo ${this.optionalDeploymentVariables()}${this.agentNameVariable()}yum install -y ${this.optionalPackages()}`, fedoraText: `sudo ${this.optionalDeploymentVariables()}${this.agentNameVariable()}yum install -y ${this.optionalPackages()}`, oraclelinuxText: `sudo ${this.optionalDeploymentVariables()}${this.agentNameVariable()}yum install -y ${this.optionalPackages()}`, - suseText: `sudo ${this.optionalDeploymentVariables()}${this.agentNameVariable()}yum install -y ${this.optionalPackages()}`, + suseText: `sudo rpm --import https://packages.wazuh.com/key/GPG-KEY-WAZUH && sudo ${this.optionalDeploymentVariables()}${this.agentNameVariable()}zypper install -y ${this.optionalPackages()}`, raspbianText: `curl -so wazuh-agent.deb ${this.optionalPackages()} && sudo ${this.optionalDeploymentVariables()}${this.agentNameVariable()}dpkg -i ./wazuh-agent.deb`, };