mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-24 13:42:05 +02:00
merge with master
This commit is contained in:
@@ -846,8 +846,7 @@ apply_hotfix() {
|
||||
if [[ "$INSTALLEDVERSION" == "2.3.90" && "$HOTFIXVERSION" == "WAZUH" ]] ; then
|
||||
FILE="/nsm/wazuh/etc/ossec.conf"
|
||||
echo "Detecting if ossec.conf needs corrected..."
|
||||
WAZUHHEADER=$(head -1 $FILE | grep "xml version")
|
||||
if [[ ! -z "$WAZUHHEADER" ]]; then
|
||||
if head -1 $FILE | grep -q "xml version"; then
|
||||
echo "$FILE has an XML header; removing"
|
||||
sed -i 1d $FILE
|
||||
so-wazuh-restart
|
||||
|
||||
Reference in New Issue
Block a user