Skip to content

Commit

Permalink
Putting the uncompressed directory into a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Oct 17, 2024
1 parent 48dc541 commit 45748c7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build-scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,21 @@ function clean() {
# ====
function assemble_tar() {
cd "${TMP_DIR}"
PATH_CONF="./config"
PATH_BIN="./bin"
PATH_PLUGINS="./plugins"

# Extract
echo "Extract ${ARTIFACT_BUILD_NAME} archive"
tar -zvxf "${ARTIFACT_BUILD_NAME}"
cd "$(ls -d wazuh-indexer-*/)"

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

local version
version=$(cat VERSION)

cd ..
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}
Expand Down

0 comments on commit 45748c7

Please sign in to comment.