Apply hotfix to all 2.3.90 installs

This commit is contained in:
Mike Reeves
2021-12-03 15:15:45 -05:00
committed by GitHub
parent 5008b647b0
commit 780daf8aa7

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
}