pkgbuilds/wazuh-manager/wazuh-manager.install

12 lines
590 B
Plaintext
Raw Normal View History

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!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
}