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

sostat: update location of sostat-interface in /var/ossec/etc/ossec.conf #1056

Closed
dougburks opened this issue Jan 6, 2017 · 3 comments
Closed

Comments

@dougburks
Copy link
Contributor

dougburks commented Jan 6, 2017

Reported by dave@chauntry.com:
https://groups.google.com/d/topic/security-onion/nw7tJx58t08/discussion

@dougburks dougburks changed the title update location of sostat-interface in /var/ossec/etc/ossec.conf sostat: update location of sostat-interface in /var/ossec/etc/ossec.conf Jan 6, 2017
@dougburks
Copy link
Contributor Author

Will add the following code to sostat postinst script:

FILE="/var/ossec/etc/ossec.conf"
if grep "/usr/bin/sostat-interface" $FILE >/dev/null 2>&1; then
 echo "Updating sostat-interface path in $FILE."
 sed -i 's|/usr/bin/sostat-interface|/usr/sbin/sostat-interface|g' $FILE || echo "Error updating $FILE."
fi

@dougburks
Copy link
Contributor Author

@dougburks
Copy link
Contributor Author

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

No branches or pull requests

1 participant