From 65f171fe4f49f3bbe45859b0354954a2bf4e0ba9 Mon Sep 17 00:00:00 2001 From: Gui-Gos <97973228+Gui-Gos@users.noreply.github.com> Date: Sun, 4 Jan 2026 19:39:06 +0100 Subject: [PATCH] docs: Fix sed regex to match password without quotes in wazuh.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The actual wazuh.yml file has passwords WITHOUT quotes: password: MyS3cr37P450r.*- But the sed command was searching FOR quotes: password: "MyS3cr37P450r.*-" This caused the sed command to not match and not replace anything. Fixed by removing quotes from the sed pattern to match the actual YAML format used by Wazuh. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- apps/wazuh-runtipi/metadata/description.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/wazuh-runtipi/metadata/description.md b/apps/wazuh-runtipi/metadata/description.md index e181ea3..7f2c7a1 100644 --- a/apps/wazuh-runtipi/metadata/description.md +++ b/apps/wazuh-runtipi/metadata/description.md @@ -332,11 +332,11 @@ Si vous utilisez les valeurs par défaut: ```bash # Remplacer l'ancien mot de passe par le nouveau dans wazuh.yml docker exec -it wazuh-runtipi_*-wazuh-dashboard-1 bash -c \ - "sed -i 's|password: \"MyS3cr37P450r\.\*-\"|password: \"VOTRE_NOUVEAU_MOT_DE_PASSE\"|g' \ + "sed -i 's|password: MyS3cr37P450r\.\*-|password: VOTRE_NOUVEAU_MOT_DE_PASSE|g' \ /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml" ``` - **⚠️ IMPORTANT:** Remplacez `VOTRE_NOUVEAU_MOT_DE_PASSE` par votre mot de passe réel + **⚠️ IMPORTANT:** Remplacez `VOTRE_NOUVEAU_MOT_DE_PASSE` par votre mot de passe réel (sans guillemets) **Vérifier que le changement a été effectué:** ```bash @@ -354,8 +354,8 @@ Si vous utilisez les valeurs par défaut: # Afficher le fichier pour voir son contenu cat /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml - # Utiliser sed directement dans le conteneur - sed -i 's|password: "MyS3cr37P450r\.\*-"|password: "VOTRE_NOUVEAU_MOT_DE_PASSE"|g' \ + # Utiliser sed directement dans le conteneur (sans guillemets) + sed -i 's|password: MyS3cr37P450r\.\*-|password: VOTRE_NOUVEAU_MOT_DE_PASSE|g' \ /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml # Vérifier le changement