Skip to content

Commit

Permalink
Merge pull request #3 from ms264556/dev
Browse files Browse the repository at this point in the history
Fix info logging
  • Loading branch information
kchiem authored Nov 13, 2024
2 parents 5f7ad72 + e98e7a2 commit b665014
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/ruckus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ ruckus_deploy() {
export HTTPS_INSECURE=1
export ACME_HTTP_NO_REDIRECTS=1

_info Discovering the login URL
_info "Discovering the login URL"
_get "https://$RUCKUS_HOST" >/dev/null
_login_url="$(_response_header 'Location')"
if [ -n "$_login_url" ]; then
Expand Down Expand Up @@ -98,7 +98,7 @@ ruckus_deploy() {
return 1
fi

_info Login
_info "Login"
_username_encoded="$(printf "%s" "$RUCKUS_USER" | _url_encode)"
_password_encoded="$(printf "%s" "$RUCKUS_PASS" | _url_encode)"
_login_query="$(printf "%s" "username=${_username_encoded}&password=${_password_encoded}&ok=Log+In")"
Expand All @@ -110,10 +110,10 @@ ruckus_deploy() {
return 1
fi

_info Collect Session Cookie
_info "Collect Session Cookie"
_H1="Cookie: $(_response_cookie)"
export _H1
_info Collect CSRF Token
_info "Collect CSRF Token"
_H2="X-CSRF-Token: $(_response_header 'HTTP_X_CSRF_TOKEN')"
export _H2

Expand Down

0 comments on commit b665014

Please sign in to comment.