Suppres grep output

This commit is contained in:
Jason Ertel
2021-11-23 14:52:40 -05:00
parent 801d42ed20
commit 4f283c2d86

View File

@@ -841,7 +841,7 @@ apply_hotfix() {
if [[ "$INSTALLEDVERSION" == "2.3.90" && "$HOTFIXVERSION" == "WAZUH" ]] ; then
FILE="/nsm/wazuh/etc/ossec.conf"
echo "Detecting if ossec.conf needs corrected..."
if head -1 $FILE | grep "xml version"; then
if head -1 $FILE | grep -q "xml version"; then
echo "$FILE has an XML header; removing"
sed -i 1d $FILE
so-wazuh-restart