pkgbuilds/wazuh-agent/wazuh-agent.install

15 lines
826 B
Plaintext
Raw Permalink Normal View History

2023-11-17 22:16:24 -06:00
post_install()
{
2023-11-21 10:09:57 -06:00
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!"
2023-11-17 22:16:24 -06:00
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"
}