mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-05-18 20:03:55 +08:00
Update deploy/byteplus_alb.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
neil
parent
934870fc77
commit
8587c3e744
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user