Skip to content

Commit

Permalink
Adding function to package Wazuh`s tools to assemble.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Jan 11, 2024
1 parent ce14ea7 commit cb4eae6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ====
Expand Down Expand Up @@ -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)"
Expand Down Expand Up @@ -267,6 +277,7 @@ function assemble_rpm() {
# Swap configuration files
add_configuration_files
remove_unneeded_files
get_wazuh_files

# Generate final package
local topdir
Expand Down Expand Up @@ -319,6 +330,7 @@ function assemble_deb() {
# Swap configuration files
add_configuration_files
remove_unneeded_files
get_wazuh_files

# Generate final package
local version
Expand Down

0 comments on commit cb4eae6

Please sign in to comment.