From 016a383bc38d72eb1fe25afcbb82d1c32553ad3c Mon Sep 17 00:00:00 2001 From: ch3ng Date: Wed, 27 Jun 2018 21:24:09 +0800 Subject: [PATCH] Fix chmod www-data iss and letsencrypt.sh protocol issues --- le-dns/README.md | 2 +- le-dns/le-cloudflare.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/le-dns/README.md b/le-dns/README.md index 0c006ae..c32dea0 100644 --- a/le-dns/README.md +++ b/le-dns/README.md @@ -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 目录下 diff --git a/le-dns/le-cloudflare.sh b/le-dns/le-cloudflare.sh index 03aa392..1c4d18e 100755 --- a/le-dns/le-cloudflare.sh +++ b/le-dns/le-cloudflare.sh @@ -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