Handle CRs in hotfix

This commit is contained in:
Jason Ertel
2021-11-23 13:03:40 -05:00
parent 3c37bd61ab
commit 01ceded223

View File

@@ -838,7 +838,7 @@ verify_latest_update_script() {
} }
apply_hotfix() { apply_hotfix() {
if [[ "$INSTALLEDVERSION" == "2.3.90" && "$HOTFIXVERSION" == "WAZUH" ]]; then if [[ "$INSTALLEDVERSION" == "2.3.90" && "$HOTFIXVERSION" =~ "WAZUH" ]]; 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..."
WAZUHHEADER=$(head -1 $FILE | grep "xml version") WAZUHHEADER=$(head -1 $FILE | grep "xml version")