Skip to content

Commit

Permalink
Explicitly compress the control files to .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Dec 20, 2024
1 parent 5f7cd2a commit 40e1d05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build-scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,13 @@ function assemble_deb() {
echo "Extract ${ARTIFACT_BUILD_NAME} archive"
ar xf "${ARTIFACT_BUILD_NAME}" data.tar.gz
tar zvxf data.tar.gz
# Extracts debian control files (preinst, postrm, ...)
# We need to use some custom files, otherwise debuild fails
mv "./debian/control" "./debian/wazuh-control"
ar xf "${ARTIFACT_BUILD_NAME}" control.tar.gz
tar zvxf control.tar.gz -C "debian"
mv "./debian/wazuh-control" "./debian/control"
rm "./debian/conffiles"

local version
version=$(cat ./usr/share/wazuh-indexer/VERSION)
Expand Down

0 comments on commit 40e1d05

Please sign in to comment.