15 lines
826 B
Plaintext
15 lines
826 B
Plaintext
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"
|
|
}
|