Merge pull request #1158 from wazuh/540-vd-update

Changed configuration to new VD and indexer config
This commit is contained in:
Gonzalo Acuña
2023-12-20 15:06:36 -03:00
committed by GitHub
4 changed files with 73 additions and 252 deletions
@@ -112,6 +112,12 @@ function_entrypoint_scripts() {
fi
}
function_configure_vulnerability_detection() {
if [ "$INDEXER_PASSWORD" != "" ]; then
>&2 echo "Configuring password."
sed -i "s|<password>VDPass</password>|<password>$INDEXER_PASSWORD</password>|g" /var/ossec/etc/ossec.conf
fi
}
# Migrate data from /wazuh-migration volume
function_wazuh_migration
@@ -119,6 +125,9 @@ function_wazuh_migration
# create API custom user
function_create_custom_user
# configure Vulnerabilty detection
function_configure_vulnerability_detection
# run entrypoint scripts
function_entrypoint_scripts