From 0a8bfc27256c79d6f18dfae50f708141080774e2 Mon Sep 17 00:00:00 2001 From: Azoo224 <140733746+Azoo224@users.noreply.github.com> Date: Sat, 16 Nov 2024 19:32:16 +0800 Subject: [PATCH] Bash menu: "No Such File or Directory" While Installing Certs (#2602) --- x-ui.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index b99d801d..4b2e8a20 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -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