From 5bcaa7e8f5f8402fbfad23eefe2face39a23ace1 Mon Sep 17 00:00:00 2001 From: Azoo224 Date: Sat, 16 Nov 2024 17:53:15 +0800 Subject: [PATCH] update CF_ssl func --- x-ui.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-ui.sh b/x-ui.sh index ffe53b56..4b2e8a20 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -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 \