From 780daf8aa7dffed1b230bd6e2376aaf7d66c67fd Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 3 Dec 2021 15:15:45 -0500 Subject: [PATCH 1/2] Apply hotfix to all 2.3.90 installs --- salt/common/tools/sbin/soup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 86d48e2d1..30c9cb5a5 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -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 } From f82d204c0e2be6ebcba44413c3cc1c449eb79c47 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Fri, 3 Dec 2021 15:20:33 -0500 Subject: [PATCH 2/2] Update soup --- salt/common/tools/sbin/soup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 30c9cb5a5..50c925d22 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -865,7 +865,7 @@ apply_hotfix() { echo "$FILE does not have an XML header, so no changes are necessary." fi else - echo "No Actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)" + echo "No actions required. ($INSTALLEDVERSION/$HOTFIXVERSION)" fi }