Skip to content

Commit

Permalink
Fix the agent installation command for macOS (#4968)
Browse files Browse the repository at this point in the history
* Fixed the agent installation command for macOS

* CHANGELOG

* Update CHANGELOG.md
  • Loading branch information
chantal-kelm authored Dec 16, 2022
1 parent cc6419d commit 072e873
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Fixed pagination to SCA table [#4653](https:/wazuh/wazuh-kibana-app/issues/4653)
- Fixed WAZUH_PROTOCOL param suggestion [#4849](https:/wazuh/wazuh-kibana-app/pull/4849)
- Raspbian OS, Ubuntu, Amazon Linux and Amazon Linux 2 commands in the wizard deploy agent now change when a different architecture is selected [#4876](https:/wazuh/wazuh-kibana-app/pull/4876) [#4880](https:/wazuh/wazuh-kibana-app/pull/4880)
- Fixed agent installation command for macOS in the deploy new agent section. [#4968](https:/wazuh/wazuh-kibana-app/pull/4968)
- Deploy new agent section: Fixed the way macos versions and architectures were displayed, fixed the way agents were displayed, fixed the way ubuntu versions were displayed. [#4933](https:/wazuh/wazuh-kibana-app/pull/4933)
- Fixed vulnerabilities default last scan date formatter [#4975](https:/wazuh/wazuh-kibana-app/pull/4975)

Expand Down
8 changes: 8 additions & 0 deletions public/controllers/agent/components/register-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,14 @@ export const RegisterAgent = withErrorBoundary(

agentNameVariable() {
let agentName = `WAZUH_AGENT_NAME='${this.state.agentName}' `;
if (
this.state.selectedOS === 'macos' &&
this.state.selectedArchitecture &&
this.state.agentName !== ''
) {
return agentName.replace(/=/g, ' ');
}

if (this.state.selectedArchitecture && this.state.agentName !== '') {
return agentName;
} else {
Expand Down

0 comments on commit 072e873

Please sign in to comment.