Skip to content

Commit

Permalink
Bash menu: "No Such File or Directory" While Installing Certs (#2602)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azoo224 authored Nov 16, 2024
1 parent c5bbb6b commit 0a8bfc2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a8bfc2

Please sign in to comment.