|
@ -65,7 +65,6 @@ ruckus_deploy() { |
|
|
_debug RUCKUS_USER "$RUCKUS_USER" |
|
|
_debug RUCKUS_USER "$RUCKUS_USER" |
|
|
_secure_debug RUCKUS_PASS "$RUCKUS_PASS" |
|
|
_secure_debug RUCKUS_PASS "$RUCKUS_PASS" |
|
|
|
|
|
|
|
|
export HTTPS_INSECURE=1 |
|
|
|
|
|
export ACME_HTTP_NO_REDIRECTS=1 |
|
|
export ACME_HTTP_NO_REDIRECTS=1 |
|
|
|
|
|
|
|
|
_info "Discovering the login URL" |
|
|
_info "Discovering the login URL" |
|
@ -88,12 +87,12 @@ ruckus_deploy() { |
|
|
_base_url=$(dirname "$_login_url") |
|
|
_base_url=$(dirname "$_login_url") |
|
|
_login_page=$(basename "$_login_url") |
|
|
_login_page=$(basename "$_login_url") |
|
|
|
|
|
|
|
|
if [ "$_login_page" = "index.html" ]; then |
|
|
|
|
|
|
|
|
if [ "$_login_page" = "index.html" ]; then |
|
|
_err "Connection temporarily unavailable: Unleashed Rebuilding." |
|
|
_err "Connection temporarily unavailable: Unleashed Rebuilding." |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "$_login_page" = "wizard.jsp" ]; then |
|
|
|
|
|
|
|
|
if [ "$_login_page" = "wizard.jsp" ]; then |
|
|
_err "Connection failed: Setup Wizard not complete." |
|
|
_err "Connection failed: Setup Wizard not complete." |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
@ -135,11 +134,11 @@ ruckus_deploy() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_response_code() { |
|
|
_response_code() { |
|
|
< "$HTTP_HEADER" _egrep_o "^HTTP[^ ]* .*$" | cut -d " " -f 2-100 | tr -d "\f\n" | _egrep_o "^[0-9]*" |
|
|
|
|
|
|
|
|
_egrep_o <"$HTTP_HEADER" "^HTTP[^ ]* .*$" | cut -d " " -f 2-100 | tr -d "\f\n" | _egrep_o "^[0-9]*" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_response_header() { |
|
|
_response_header() { |
|
|
< "$HTTP_HEADER" grep -i "^$1:" | cut -d ':' -f 2- | tr -d "\r\n\t " |
|
|
|
|
|
|
|
|
grep <"$HTTP_HEADER" -i "^$1:" | cut -d ':' -f 2- | tr -d "\r\n\t " |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
_response_cookie() { |
|
|
_response_cookie() { |
|
|