Skip to content

Commit

Permalink
Copy debian/ folder to the build dir for debmake to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
f-galland committed Jan 17, 2024
1 parent a79ce76 commit 385582c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 0 additions & 8 deletions distribution/packages/src/deb/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,6 @@ echo " sudo systemctl enable wazuh-indexer.service"
echo "### You can start wazuh-indexer service by executing"
echo " sudo systemctl start wazuh-indexer.service"

if [ -d ${product_dir}/plugins/opensearch-security ]; then
echo "### Create wazuh-indexer demo certificates in ${config_dir}/"
echo " See demo certs creation log in ${log_dir}/install_demo_configuration.log"
fi
echo "### Upcoming breaking change in packaging"
echo " In a future release of Wazuh Indexer, we plan to change the permissions associated with access to installed files"
echo " If you are configuring tools that require read access to the Wazuh Indexer configuration files, we recommend you add the user that runs these tools to the 'wazuh-indexer' group"
echo " For more information, see https://github.com/opensearch-project/opensearch-build/pull/4043"
exit 0


9 changes: 8 additions & 1 deletion scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ The script will:
|-- etc
|-- usr
|-- var
`-- wazuh-indexer-min_4.9.0_amd64.deb
|-- wazuh-indexer-min_4.9.0_amd64.deb
`-- debian/
| -- control
| -- copyright
| -- rules
| -- preinst
| -- prerm
| -- postinst
```

### Running in Act
Expand Down
1 change: 1 addition & 0 deletions scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ function assemble_deb() {
# Copy spec
cp "distribution/packages/src/deb/Makefile" "${TMP_DIR}"
cp "distribution/packages/src/deb/debmake_install.sh" "${TMP_DIR}"
cp -r "distribution/packages/src/deb/debian" "${TMP_DIR}"
chmod a+x "${TMP_DIR}/debmake_install.sh"
# Copy performance analyzer service file
enable_performance_analyzer
Expand Down

0 comments on commit 385582c

Please sign in to comment.