blob: 4385f64bc2d0ea3609cffe2fdfb61569172c0a21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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 "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"
}
|