Bash menu: "No Such File or Directory" While Installing Certs (#2602)

This commit is contained in:
Azoo224 2024-11-16 19:32:16 +08:00 committed by GitHub
parent c5bbb6b632
commit 0a8bfc2725
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1183,8 +1183,14 @@ ssl_cert_issue_CF() {
fi
# 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} \
--cert-file ${certPath}/${CF_Domain}/fullchain.pem \
--fullchain-file ${certPath}/${CF_Domain}/fullchain.pem \
--key-file ${certPath}/${CF_Domain}/privkey.pem
if [ $? -ne 0 ]; then