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

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

Projects

None yet

1 participant

@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
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
@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