Skip to content

Commit

Permalink
Unify the use of double-quotes
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Verdaguer Velázquez <[email protected]>
  • Loading branch information
verdx authored and snaow committed Mar 10, 2023
1 parent 48e52e6 commit 81675c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unattended_installer/install_functions/dashboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ function dashboard_initializeAIO() {

common_logger "Initializing Wazuh dashboard web application."
installCommon_getPass "admin"
http_code="$(curl -XGET https://localhost/status -uadmin:${u_pass} -k -w %{http_code} -s -o /dev/null )"
http_code=$(curl -XGET https://localhost/status -uadmin:"${u_pass}" -k -w %"{http_code}" -s -o /dev/null)
retries=0
max_dashboard_initialize_retries=5
while [ "${http_code}" -ne "200" ] && [ "${retries}" -lt "${max_dashboard_initialize_retries}" ]
do
common_logger "Wazuh dashboard web application not yet initialized. Waiting..."
http_code="$(curl -XGET https://localhost/status -uadmin:${u_pass} -k -w %{http_code} -s -o /dev/null)"
http_code=$(curl -XGET https://localhost/status -uadmin:"${u_pass}" -k -w %"{http_code}" -s -o /dev/null)
retries=$((retries+1))
sleep 1
done
Expand Down

0 comments on commit 81675c7

Please sign in to comment.