restart wazuh with docker restart vs so-wazuh-restart

This commit is contained in:
m0duspwnens
2022-01-13 13:02:01 -05:00
parent 06c0cebb26
commit 82db3fa3c0

View File

@@ -946,7 +946,7 @@ fix_wazuh() {
if head -1 $FILE | grep -q "xml version"; then if head -1 $FILE | grep -q "xml version"; then
echo "$FILE has an XML header; removing" echo "$FILE has an XML header; removing"
sed -i 1d $FILE 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 else
echo "$FILE does not have an XML header, so no changes are necessary." echo "$FILE does not have an XML header, so no changes are necessary."
fi fi