Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

rule-update needs to copy OSSEC local_rules.xml from master to sensor #349

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

If running on master:
cp /var/ossec/rules/local_rules.xml /tmp/local_rules.xml
chmod 644 /tmp/local_rules.xml

If running on sensor:
if [ ! -f /var/ossec/rules/local_rules.xml.orig ]; then
cp /var/ossec/rules/local_rules.xml /var/ossec/rules/local_rules.xml.orig
fi
cp /var/ossec/rules/local_rules.xml /var/ossec/rules/local_rules.xml.prev
scp $USER@$MASTER:/tmp/local_rules.xml /var/ossec/rules/local_rules.xml
chown root:ossec /var/ossec/rules/local_rules.xml

Original issue reported on code.google.com by doug.bu...@gmail.com on 19 Jun 2013 at 8:34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant