Fix chmod www-data iss and letsencrypt.sh protocol issues

This commit is contained in:
ch3ng 2018-06-27 21:24:09 +08:00
parent 0fc5973be1
commit 016a383bc3
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ CERT_DOMAINS="example.com www.example.com im.example.com"
**运行**
`./le-cloudflare.sh cloudflare.conf`
`./le-cloudflare.sh ./cloudflare.conf`
最后生成的文件在当前目录的 certs 目录下

View File

@ -29,9 +29,9 @@ if [ ! -f "letsencrypt.sh" ];then
fi
if [ "$ECC" = "TRUE" ];then
./letsencrypt.sh -c -k ./cloudflare-hook.sh -t dns-01 -a secp384r1
./letsencrypt.sh --accept-terms -c -k ./cloudflare-hook.sh -t dns-01 -a secp384r1
else
./letsencrypt.sh -c -k ./cloudflare-hook.sh -t dns-01
./letsencrypt.sh --accept-terms -c -k ./cloudflare-hook.sh -t dns-01
fi
chown -R www-data:www-data certs
chown -R $USER:$USER certs