From 8bf06b66d715a74fa13de8709f7f7d197d59fe2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Anguita=20L=C3=B3pez?= Date: Fri, 17 May 2024 14:00:36 +0200 Subject: [PATCH] print on console the wazuh user password --- unattended_installer/passwords_tool/passwordsFunctions.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/unattended_installer/passwords_tool/passwordsFunctions.sh b/unattended_installer/passwords_tool/passwordsFunctions.sh index 581f577f80..92d47f4170 100644 --- a/unattended_installer/passwords_tool/passwordsFunctions.sh +++ b/unattended_installer/passwords_tool/passwordsFunctions.sh @@ -77,6 +77,14 @@ function passwords_changePassword() { fi fi + if [ -n "${wazuh}" ]; then + for i in "${!api_users[@]}"; do + if [ "${api_users[i]}" == "wazuh" ]; then + common_logger "The password for user ${api_users[i]} is ${api_passwords[i]}" + fi + done + fi + } function passwords_changePasswordApi() {