Add Wazuh-Elasticsearch (#106)

This commit is contained in:
AlfonsoRBJ
2019-02-01 18:43:51 +01:00
committed by Jesús Linares
parent 046b2f049b
commit cb2e49eb54
8 changed files with 140 additions and 38 deletions
+15
View File
@@ -129,4 +129,19 @@ do
exec_cmd_stdout "${CUSTOM_COMMAND}"
done
##############################################################################
# Change Wazuh API user credentials.
##############################################################################
pushd /var/ossec/api/configuration/auth/
echo "Change Wazuh API user credentials"
change_user="node htpasswd -b -c user $API_USER $API_PASS"
eval $change_user
popd
/sbin/my_init