update CF_ssl func

This commit is contained in:
Azoo224 2024-11-16 17:53:15 +08:00
parent b80f0ab4df
commit 5bcaa7e8f5

View file

@ -1184,6 +1184,10 @@ ssl_cert_issue_CF() {
# Install the certificate
mkdir -p ${certPath}/${CF_Domain}
if [ $? -ne 0 ]; then
LOGE "Failed to create directory: ${certPath}/${CF_Domain}"
exit 1
fi
~/.acme.sh/acme.sh --installcert -d ${CF_Domain} -d *.${CF_Domain} \
--fullchain-file ${certPath}/${CF_Domain}/fullchain.pem \