Merge pull request #6445 from Security-Onion-Solutions/TOoSmOotH-patch-3

Apply hotfix to all 2.3.90 installs
This commit is contained in:
Mike Reeves
2021-12-03 15:24:33 -05:00
committed by GitHub

View File

@@ -854,7 +854,7 @@ verify_latest_update_script() {
}
apply_hotfix() {
if [[ "$INSTALLEDVERSION" == "2.3.90" && "$HOTFIXVERSION" == "WAZUH" ]] ; then
if [[ "$INSTALLEDVERSION" == "2.3.90" ]] ; then
FILE="/nsm/wazuh/etc/ossec.conf"
echo "Detecting if ossec.conf needs corrected..."
if head -1 $FILE | grep -q "xml version"; then
@@ -865,7 +865,7 @@ apply_hotfix() {
echo "$FILE does not have an XML header, so no changes are necessary."
fi
else
echo "Skipping ossec.conf check ($INSTALLEDVERSION/$HOTFIXVERSION)"
echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
fi
}