Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing tools and files back into Wazuh Indexer packages #117

Merged
merged 7 commits into from
Jan 12, 2024
16 changes: 16 additions & 0 deletions scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@ 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() {

local version=$(<VERSION)
version=${version%%.[[:digit:]]}

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
}

AlexRuiz7 marked this conversation as resolved.
Show resolved Hide resolved
# ====
# Copy performance analyzer service file
# ====
Expand Down Expand Up @@ -231,6 +244,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 +281,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 +334,7 @@ function assemble_deb() {
# Swap configuration files
add_configuration_files
remove_unneeded_files
get_wazuh_files

# Generate final package
local version
Expand Down