mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #6445 from Security-Onion-Solutions/TOoSmOotH-patch-3
Apply hotfix to all 2.3.90 installs
This commit is contained in:
@@ -854,7 +854,7 @@ verify_latest_update_script() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply_hotfix() {
|
apply_hotfix() {
|
||||||
if [[ "$INSTALLEDVERSION" == "2.3.90" && "$HOTFIXVERSION" == "WAZUH" ]] ; then
|
if [[ "$INSTALLEDVERSION" == "2.3.90" ]] ; then
|
||||||
FILE="/nsm/wazuh/etc/ossec.conf"
|
FILE="/nsm/wazuh/etc/ossec.conf"
|
||||||
echo "Detecting if ossec.conf needs corrected..."
|
echo "Detecting if ossec.conf needs corrected..."
|
||||||
if head -1 $FILE | grep -q "xml version"; then
|
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."
|
echo "$FILE does not have an XML header, so no changes are necessary."
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Skipping ossec.conf check ($INSTALLEDVERSION/$HOTFIXVERSION)"
|
echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user