#!/bin/sh fixed_lines=" %%LUA%%@(,,0550) %%OSSEC_HOME%%/bin/ossec-lua %%LUA%%@(,,0550) %%OSSEC_HOME%%/bin/ossec-luac" if [ "${OSSEC_TYPE}" != "agent" ]; then fixed_lines="${fixed_lines} %%MYSQL%%%%DOCSDIR%%/mysql.schema %%PGSQL%%%%DOCSDIR%%/postgresql.schema" fi skip_lines=" %%PORTDOCS%%%%DOCSDIR%%/mysql.schema %%PORTDOCS%%%%DOCSDIR%%/postgresql.schema" skip_paths=" /etc/ossec.conf /etc/client.keys /logs/active-responses.log /logs/ossec.log /lua" if [ "${OSSEC_TYPE}" = "agent" ]; then skip_paths="${skip_paths} /rules /agentless /.ssh" fi sample_paths=" /etc/local_internal_options.conf.sample /active-response/bin/cloudflare-ban.sh.sample /active-response/bin/ossec-aws-waf.sh.sample /active-response/bin/ossec-pagerduty.sh.sample /active-response/bin/ossec-slack.sh.sample /active-response/bin/ossec-tweeter.sh.sample" if [ "${OSSEC_TYPE}" != "agent" ]; then sample_paths="${sample_paths} /rules/local_rules.xml.sample" fi