New VD config update

This commit is contained in:
Gonzalo Acuña
2023-12-19 10:45:21 -03:00
parent 86dd284368
commit 09aeb68b14
4 changed files with 73 additions and 252 deletions

View File

@@ -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