Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installdir replacement in localfile generation for Debs packages #703

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarcelKemp
Copy link
Member

Related issue
wazuh/wazuh#8140

Description

Hi team,

This PR fixes the absolute path error found in ossec.conf on Debian systems.
Having eliminated the PREFIX compilation variable, it is necessary to indicate the path in which you are working in the scripts used in postinst, in order to avoid the configuration block being hardcoded.

Logs example

After the changes, now the saved absolute path is modified according to the installation path selected when creating the package:

...
<ossec_config>
  <localfile>
    <log_format>syslog</log_format>
    <location>/usr/share/wazuh/logs/active-responses.log</location>
  </localfile>
...

Tests

  • Build the package in any supported platform
    • Linux
  • Package installation
  • Package remove
  • Package install/remove/install
  • Tests for Linux deb
    • Build the package for x86_64
    • Package install/remove/install

@MarcelKemp MarcelKemp changed the title Fix debs ossec.conf filebeat path Fix installdir replacement in localfile generation for Debs packages Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants