Skip to content

Commit

Permalink
Merge pull request #2561 from wazuh/bug/1958-wazuh-passwords-toolsh-f…
Browse files Browse the repository at this point in the history
…ails-with-line-comments

Fixed fetching network host in Password tool
  • Loading branch information
teddytpc1 authored Oct 26, 2023
2 parents bd1d9c6 + 476e773 commit ac92595
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 @@ -362,7 +362,7 @@ function passwords_getApiUserId() {

function passwords_getNetworkHost() {

IP=$(grep -hr "network.host:" /etc/wazuh-indexer/opensearch.yml)
IP=$(grep -hr "^network.host:" /etc/wazuh-indexer/opensearch.yml)
NH="network.host: "
IP="${IP//$NH}"

Expand Down

0 comments on commit ac92595

Please sign in to comment.