Merge pull request #6862 from Security-Onion-Solutions/issue/6811

restart wazuh with docker restart vs so-wazuh-restart
This commit is contained in:
Josh Patterson
2022-01-13 13:06:43 -05:00
committed by GitHub

View File

@@ -946,7 +946,7 @@ fix_wazuh() {
if head -1 $FILE | grep -q "xml version"; then
echo "$FILE has an XML header; removing"
sed -i 1d $FILE
so-wazuh-restart
docker restart so-wazuh # cannot use so-wazuh-restart here because the salt-master service is stopped
else
echo "$FILE does not have an XML header, so no changes are necessary."
fi