From cb4eae6ee5642575ae1f35195079c5aeb3b1a4d2 Mon Sep 17 00:00:00 2001 From: Fede Tux Date: Thu, 11 Jan 2024 15:20:46 -0300 Subject: [PATCH] Adding function to package Wazuh`s tools to assemble.sh --- scripts/assemble.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/assemble.sh b/scripts/assemble.sh index b64d987a72a04..215954c2d973f 100755 --- a/scripts/assemble.sh +++ b/scripts/assemble.sh @@ -172,6 +172,15 @@ function remove_unneeded_files() { rm "$PATH_PLUGINS/opensearch-security/tools/install_demo_configuration.sh" } +# ==== +# Get missing Wazuh tools and files into packages +# ==== +function get_wazuh_files() { + wget -q https://packages-dev.wazuh.com/4.9/config.yml -O $PATH_PLUGINS/opensearch-security/tools/config.yml + wget -q https://packages-dev.wazuh.com/4.9/wazuh-passwords-tool.sh -O $PATH_PLUGINS/opensearch-security/tools/wazuh-passwords-tool.sh + wget -q https://packages-dev.wazuh.com/4.9/wazuh-certs-tool.sh -O $PATH_PLUGINS/opensearch-security/tools/wazuh-certs-tool.sh +} + # ==== # Copy performance analyzer service file # ==== @@ -231,6 +240,7 @@ function assemble_tar() { # Swap configuration files add_configuration_files remove_unneeded_files + get_wazuh_files # Pack archive_name="wazuh-indexer-$(cat VERSION)" @@ -267,6 +277,7 @@ function assemble_rpm() { # Swap configuration files add_configuration_files remove_unneeded_files + get_wazuh_files # Generate final package local topdir @@ -319,6 +330,7 @@ function assemble_deb() { # Swap configuration files add_configuration_files remove_unneeded_files + get_wazuh_files # Generate final package local version