2023-11-17 17:00:28 -06:00
post_install()
{
2023-11-21 10:09:57 -06:00
echo "creating wazuh-indexer user and group"
groupadd -f wazuh-indexer
usuario="wazuh-indexer" && id "$usuario" &>/dev/null || useradd -d /usr/share/wazuh-indexer -g wazuh-indexer -s /usr/bin/nologin wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /usr/share/wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /etc/wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /var/log/wazuh-indexer
chown -R wazuh-indexer:wazuh-indexer /var/lib/wazuh-indexer
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-indexer/step-by-step.html and follow the configure instructions and Cluster initialization instructions"
2023-11-17 17:00:28 -06:00
}