Update deploy/byteplus_alb.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
ACHMAD ALIF NASRULLOH
2026-04-05 12:00:39 +07:00
committed by neil
parent 934870fc77
commit 8587c3e744

View File

@@ -252,14 +252,14 @@ _byteplus_delete_old_cert() {
_del_cert_id="$1" _del_cert_id="$1"
_info "Waiting 5s for cert status to settle..." _info "Waiting 5s for cert status to settle..."
sleep 5 _sleep 5
_info "Deleting old certificate '$_del_cert_id'..." _info "Deleting old certificate '$_del_cert_id'..."
_del_response=$(_byteplus_alb_api "DeleteCertificate" "CertificateId=${_del_cert_id}") _del_response=$(_byteplus_alb_api "DeleteCertificate" "CertificateId=${_del_cert_id}")
if echo "$_del_response" | grep -q '"Error"'; then if echo "$_del_response" | grep -q '"Error"'; then
_info "Delete failed, retrying in 10s..." _info "Delete failed, retrying in 10s..."
sleep 10 _sleep 10
_del_response=$(_byteplus_alb_api "DeleteCertificate" "CertificateId=${_del_cert_id}") _del_response=$(_byteplus_alb_api "DeleteCertificate" "CertificateId=${_del_cert_id}")
if echo "$_del_response" | grep -q '"Error"'; then if echo "$_del_response" | grep -q '"Error"'; then