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

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

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

Comments

Projects
None yet
1 participant
@dougburks
Contributor

dougburks commented Jan 6, 2017

@dougburks dougburks changed the title from update location of sostat-interface in /var/ossec/etc/ossec.conf to sostat: update location of sostat-interface in /var/ossec/etc/ossec.conf Jan 6, 2017

@dougburks

This comment has been minimized.

Show comment
Hide comment
@dougburks

dougburks Jan 6, 2017

Contributor

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
Contributor

dougburks commented Jan 6, 2017

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

This comment has been minimized.

Show comment
Hide comment
@dougburks

This comment has been minimized.

Show comment
Hide comment

@dougburks dougburks closed this Jan 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment