summarylogtreecommitdiffstats
path: root/wazuh-agent.install
blob: 66d6308190297e8cd57887f53361784da1f3362b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install()
{
  echo "creating wazuh user and group"
  groupadd -f wazuh
  usuario="wazuh" && id "$usuario" &>/dev/null || useradd -g wazuh -d /var/ossec -s /usr/bin/nologin wazuh
  chown -R wazuh:wazuh /var/ossec
  echo "Done!"
  echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-linux.html and follow the configure instructions, also, check https://documentation.wazuh.com/current/user-manual/deployment-variables/deployment-variables-linux.html for deployment vars, and https://documentation.wazuh.com/current/user-manual/agent-enrollment/index.html if you didn't follow wazu's installation guide
  or, just run the next commands:
  /var/ossec/bin/manage_agents -i <agent_key>
  systemctl daemon-reload
  systemctl enable wazuh-agent
  systemctl start wazuh-agent"
}