Browse Source

Update arubacentral.sh

pull/6218/head^2
Gondolf 9 months ago
committed by GitHub
parent
commit
4a58ddd0aa
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      deploy/arubacentral.sh

6
deploy/arubacentral.sh

@ -170,8 +170,10 @@ _delete_old_certificate() {
response=$(_post "" "$delete_url" "" "DELETE" "application/json")
_debug "Delete certificate API response: $response"
if echo "$response" | grep -q '"error"'; then
_err "❌ Failed to delete previous certificate."
if echo "$response" | jq -e '.description | test("not present")' >/dev/null 2>&1; then
_debug "✅ Previous certificate not found - skipping."
elif echo "$response" | jq -e '.error_code' >/dev/null 2>&1; then
_err "❌ Failed to delete previous certificate: $(echo "$response" | jq -r '.description')"
else
_debug "✅ Previous certificate deleted successfully."
fi

Loading…
Cancel
Save