From 1dc9cb466c0f21ff8116c4345a453a33fdc210d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Correa=20Rodr=C3=ADguez?= Date: Tue, 10 Sep 2024 12:47:23 +0200 Subject: [PATCH] Debugging token var --- install_functions/manager.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_functions/manager.sh b/install_functions/manager.sh index edc7bd5..c9cf3de 100644 --- a/install_functions/manager.sh +++ b/install_functions/manager.sh @@ -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