Skip to content

Commit

Permalink
Remove pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Oct 18, 2024
1 parent be8b1b9 commit f726476
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build-scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -268,20 +268,19 @@ function assemble_tar() {
# Extract
echo "Extract ${ARTIFACT_BUILD_NAME} archive"
tar -zvxf "${ARTIFACT_BUILD_NAME}"

local decompressed_tar_dir
decompressed_tar_dir=$(ls -d wazuh-indexer-*/)

local version
version=$(cat ${decompressed_tar_dir}/VERSION)
version=$(cat "${decompressed_tar_dir}"/VERSION)

PATH_CONF="${decompressed_tar_dir}/config"
PATH_BIN="${decompressed_tar_dir}/bin"
PATH_PLUGINS="${decompressed_tar_dir}/plugins"

echo $(pwd)
# Install plugins
install_plugins "${version}"
fix_log_rotation ${PATH_CONF}
fix_log_rotation "${PATH_CONF}"
# Swap configuration files
add_configuration_files
remove_unneeded_files
Expand Down

0 comments on commit f726476

Please sign in to comment.