Skip to content

Commit

Permalink
Update password changed message
Browse files Browse the repository at this point in the history
  • Loading branch information
DFolchA committed May 3, 2022
1 parent 5888c9c commit 00286d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unattended_installer/passwords_tool/passwordsFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,19 @@ function passwords_runSecurityAdmin() {

if [[ -n "${nuser}" ]] && [[ -n ${autopass} ]]; then
common_logger -nl $'\nThe password for user '${nuser}' is '${password}''
common_logger -w "Password changed. Remember to update the password in /etc/filebeat/filebeat.yml and /etc/wazuh-dashboard/opensearch_dashboards.yml if necessary and restart the services."
common_logger -w "Password changed. Remember to update the password in the Wazuh dashboard and Filebeat nodes if necessary, and restart the services."
fi

if [[ -n "${nuser}" ]] && [[ -z ${autopass} ]]; then
common_logger -w "Password changed. Remember to update the password in /etc/filebeat/filebeat.yml and /etc/wazuh-dashboard/opensearch_dashboards.yml if necessary and restart the services."
common_logger -w "Password changed. Remember to update the password in the Wazuh dashboard and Filebeat nodes if necessary, and restart the services."
fi

if [ -n "${changeall}" ]; then
if [ -z "${AIO}" ] && [ -z "${indexer}" ] && [ -z "${dashboard}" ] && [ -z "${wazuh}" ] && [ -z "${start_indexer_cluster}" ]; then
for i in "${!users[@]}"; do
common_logger -nl $'The password for user '${users[i]}' is '${passwords[i]}''
done
common_logger -w "Passwords changed. Remember to update the password in /etc/filebeat/filebeat.yml and /etc/wazuh-dashboard/opensearch_dashboards.yml if necessary and restart the services."
common_logger -w "Passwords changed. Remember to update the password in the Wazuh dashboard and Filebeat nodes if necessary, and restart the services."
else
common_logger -d "Passwords changed."
fi
Expand Down

0 comments on commit 00286d9

Please sign in to comment.