Skip to content

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.

4 participants