Skip to content

Commit

Permalink
Debugging token var
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcr01 committed Sep 10, 2024
1 parent 2203e04 commit 1dc9cb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install_functions/manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ function manager_startCluster() {
function manager_checkService() {
common_logger "Checking Wazuh API connection"
token_command="curl -k -s -X POST -u \"wazuh-wui:wazuh-wui\" https://127.0.0.1:55000/security/user/authenticate/run_as?raw=true -d '{\"user_name\":\"wzread\"}' -H \"content-type:application/json\""
set -x
TOKEN=$(eval "${token_command}")

set +x
max_attempts=5
attempt=0
seconds=3
Expand Down

0 comments on commit 1dc9cb4

Please sign in to comment.