Skip to content

Commit

Permalink
Fix versioning of wazuh-indexer-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Aug 20, 2024
1 parent f48f6cf commit 6f87ae1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packaging_scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function install_plugins() {

echo "Installing Wazuh plugins"
for plugin in "${wazuh_plugins[@]}"; do
plugin_from_maven="org.wazuh.plugin:${plugin}:${VERSION}.${REVISION}"
plugin_from_maven="org.wazuh.plugin:${plugin}:${1}.${REVISION}"
mvn -Dmaven.repo.local="${maven_repo_local}" org.apache.maven.plugins:maven-dependency-plugin:2.1:get -Dartifact="${plugin_from_maven}:zip"
OPENSEARCH_PATH_CONF=$PATH_CONF "${PATH_BIN}/opensearch-plugin" install --batch --verbose "file:${maven_repo_local}/org/wazuh/plugin/${plugin}/${VERSION}.${REVISION}/${plugin}-${VERSION}.${REVISION}.zip"
done
Expand Down Expand Up @@ -266,7 +266,7 @@ function assemble_tar() {
version=$(cat VERSION)

# Install plugins
install_plugins
install_plugins "${version}"
fix_log_rotation ${PATH_CONF}
# Swap configuration files
add_configuration_files
Expand Down Expand Up @@ -306,7 +306,7 @@ function assemble_rpm() {
version=$(cat ./usr/share/wazuh-indexer/VERSION)

# Install plugins
install_plugins
install_plugins "${version}"
fix_log_rotation ${PATH_CONF}
enable_performance_analyzer_rca ${src_path}
# Swap configuration files
Expand Down Expand Up @@ -360,7 +360,7 @@ function assemble_deb() {
version=$(cat ./usr/share/wazuh-indexer/VERSION)

# Install plugins
install_plugins
install_plugins "${version}"
fix_log_rotation ${PATH_CONF}
enable_performance_analyzer_rca ${src_path}
# Swap configuration files
Expand Down

0 comments on commit 6f87ae1

Please sign in to comment.