Modify wazuh-keystore use

This commit is contained in:
vcerenu
2025-03-11 15:31:31 -03:00
parent 87a3ccd3ee
commit 1186c6f9d6

View File

@@ -115,8 +115,8 @@ function_entrypoint_scripts() {
function_configure_vulnerability_detection() {
if [ "$INDEXER_PASSWORD" != "" ]; then
>&2 echo "Configuring password."
echo '$INDEXER_USERNAME' | /var/ossec/bin/wazuh-keystore -f indexer -k username
echo '$INDEXER_PASSWORD' | /var/ossec/bin/wazuh-keystore -f indexer -k password
echo "$INDEXER_USERNAME" | /var/ossec/bin/wazuh-keystore -f indexer -k username
echo "$INDEXER_PASSWORD" | /var/ossec/bin/wazuh-keystore -f indexer -k password
fi
}