mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
Bash menu: "No Such File or Directory" While Installing Certs (#2602)
This commit is contained in:
parent
c5bbb6b632
commit
0a8bfc2725
1 changed files with 7 additions and 1 deletions
8
x-ui.sh
8
x-ui.sh
|
@ -1183,8 +1183,14 @@ ssl_cert_issue_CF() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install the certificate
|
# 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} \
|
~/.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
|
--key-file ${certPath}/${CF_Domain}/privkey.pem
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in a new issue