From 0c22d322e7db575296f70e5aa9badf8d6fa64349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Anguita=20L=C3=B3pez?= Date: Wed, 11 Sep 2024 17:43:42 +0200 Subject: [PATCH] change filebeat passwords only when needed --- unattended_installer/passwords_tool/passwordsFunctions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unattended_installer/passwords_tool/passwordsFunctions.sh b/unattended_installer/passwords_tool/passwordsFunctions.sh index 2316640338..db803edc59 100644 --- a/unattended_installer/passwords_tool/passwordsFunctions.sh +++ b/unattended_installer/passwords_tool/passwordsFunctions.sh @@ -46,7 +46,7 @@ function passwords_changePassword() { fi if [ "${nuser}" == "admin" ] || [ -n "${changeall}" ]; then - if [ -n "${filebeat_installed}" ]; then + if [ -n "${filebeat_installed}" ] && [ -z "${dashboard}" ]; then file_username=$(grep "username:" /etc/filebeat/filebeat.yml | awk '{print $2}') file_password=$(grep "password:" /etc/filebeat/filebeat.yml | awk '{print $2}') if [ "$file_username" != "\${username}" ] || [ "$file_password" != "\${password}" ]; then