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 committed Dec 21, 2022
1 parent b235423 commit 269c3d2
Showing 1 changed file with 8 additions and 0 deletions.
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 @@ -368,6 +368,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 269c3d2

Please sign in to comment.