pkgbuilds/wazuh-dashboard/wazuh-dashboard.install
2023-11-21 11:09:57 -05:00

11 lines
545 B
Plaintext

post_install()
{
echo "creating wazuh-indexer user and group"
groupadd -f wazuh-dashboard
usuario="wazuh-dashboard" && id "$usuario" &>/dev/null || useradd -d /usr/share/wazuh-dashboard -g wazuh-dashboard -s /usr/bin/nologin wazuh-dashboard
chown -R wazuh-dashboard:wazuh-dashboard /usr/share/wazuh-dashboard
chown -R wazuh-dashboard:wazuh-dashboard /etc/wazuh-dashboard
echo "Done!"
echo "Visit https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html and follow the configure instructions"
}