mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-05-18 11:53:56 +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
d0e123cb02
commit
668427f285
@@ -147,7 +147,15 @@ byteplus_alb_deploy() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Enforce BytePlus naming rules: start with letter, max 128 chars
|
# Enforce BytePlus naming rules: start with letter, max 128 chars
|
||||||
BYTEPLUS_CERT_NAME=$(echo "$BYTEPLUS_CERT_NAME" | sed 's/[^a-zA-Z0-9._-]/-/g' | cut -c1-128)
|
BYTEPLUS_CERT_NAME=$(echo "$BYTEPLUS_CERT_NAME" | sed 's/[^A-Za-z0-9._-]/-/g')
|
||||||
|
case "$BYTEPLUS_CERT_NAME" in
|
||||||
|
[A-Za-z]*)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
BYTEPLUS_CERT_NAME="a$BYTEPLUS_CERT_NAME"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
BYTEPLUS_CERT_NAME=$(echo "$BYTEPLUS_CERT_NAME" | cut -c1-128)
|
||||||
|
|
||||||
_info "Certificate name: $BYTEPLUS_CERT_NAME"
|
_info "Certificate name: $BYTEPLUS_CERT_NAME"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user