Skip to content

Commit

Permalink
Merge branch '4931-fix-section-deploy-new-agent' into 4953-Fix-agent-…
Browse files Browse the repository at this point in the history
…installation-command-for-macOS
  • Loading branch information
chantal-kelm authored Dec 12, 2022
2 parents dccafa0 + 3a3d326 commit 36aca38
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions public/controllers/agent/components/register-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export const RegisterAgent = withErrorBoundary(
deb: this.systemSelector(),
ubu: this.systemSelector(),
oraclelinux: this.systemSelector(),
macos: 'sudo /Library/Ossec/bin/wazuh-control start',
win: 'NET START WazuhSvc',
macos: this.systemSelectorWazuhControlMacos(),
win: this.systemSelectorNet(),
};
}

Expand Down Expand Up @@ -256,7 +256,7 @@ export const RegisterAgent = withErrorBoundary(
this.state.selectedVersion === 'windowsserver2008' ||
this.state.selectedVersion === 'windows7'
) {
return 'update-rc.d wazuh-agent defaults && service wazuh-agent start';
return 'NET START WazuhSvc';
}
}

Expand Down Expand Up @@ -290,10 +290,6 @@ export const RegisterAgent = withErrorBoundary(
this.setState({ agentName: event.target.value });
}

setAgentName(event) {
this.setState({ agentName: event.target.value });
}

setGroupName(selectedGroup) {
this.setState({ selectedGroup });
}
Expand Down Expand Up @@ -2094,7 +2090,6 @@ apk add wazuh-agent`,
},
]
: []),

...(!missingOSSelection.length &&
this.state.selectedOS !== 'rpm' &&
this.state.selectedOS !== 'deb' &&
Expand Down

0 comments on commit 36aca38

Please sign in to comment.