2023-11-17 17:00:28 -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 "generating cert files for wazuh-authd to run properly"
|
|
|
|
./var/ossec/bin/wazuh-authd -C 265 -B 2048 -K /var/ossec/etc/sslmanager.key -X /var/ossec/etc/sslmanager.cert -S "/C=US/ST=California/CN=wazuh/"
|
|
|
|
echo "Done!"
|
2023-11-17 17:00:28 -06:00
|
|
|
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
|
|
|
|
}
|