Modify wazuh-keystore use

This commit is contained in:
vcerenu
2025-10-14 10:57:07 -05:00
committed by Jesus Garcia
parent 61141069ff
commit ae63208579
@@ -115,8 +115,8 @@ function_entrypoint_scripts() {
function_configure_vulnerability_detection() {
if [ "$INDEXER_PASSWORD" != "" ]; then
>&2 echo "Configuring password."
/var/ossec/bin/wazuh-keystore -f indexer -k username -v $INDEXER_USERNAME
/var/ossec/bin/wazuh-keystore -f indexer -k password -v $INDEXER_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
}