docs: Fix sed regex to match password without quotes in wazuh.yml
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
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 <noreply@anthropic.com>
This commit is contained in:
@@ -332,11 +332,11 @@ Si vous utilisez les valeurs par défaut:
|
|||||||
```bash
|
```bash
|
||||||
# Remplacer l'ancien mot de passe par le nouveau dans wazuh.yml
|
# Remplacer l'ancien mot de passe par le nouveau dans wazuh.yml
|
||||||
docker exec -it wazuh-runtipi_*-wazuh-dashboard-1 bash -c \
|
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"
|
/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é:**
|
**Vérifier que le changement a été effectué:**
|
||||||
```bash
|
```bash
|
||||||
@@ -354,8 +354,8 @@ Si vous utilisez les valeurs par défaut:
|
|||||||
# Afficher le fichier pour voir son contenu
|
# Afficher le fichier pour voir son contenu
|
||||||
cat /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
|
cat /usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
|
||||||
|
|
||||||
# Utiliser sed directement dans le conteneur
|
# Utiliser sed directement dans le conteneur (sans guillemets)
|
||||||
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
|
/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml
|
||||||
|
|
||||||
# Vérifier le changement
|
# Vérifier le changement
|
||||||
|
|||||||
Reference in New Issue
Block a user