Skip to content

Commit

Permalink
Merge pull request #71 from wazuh/maintenance/69-merge-#3118-wazuh-pa…
Browse files Browse the repository at this point in the history
…ckages

Bumped "Change Filebeat passwords only when installing Wazuh Server or changing passwords "
  • Loading branch information
davidcr01 authored Sep 23, 2024
2 parents 8c4d2a9 + 521f568 commit a58d971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 a58d971

Please sign in to comment.