Skip to content

Commit

Permalink
change filebeat passwords only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosALgit committed Sep 11, 2024
1 parent 144747c commit 0c22d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unattended_installer/passwords_tool/passwordsFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c22d32

Please sign in to comment.