aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-01-12 15:37:38 -0800
committerJakob Odersky <jakob@odersky.com>2018-01-12 15:37:38 -0800
commitc3a14bb70c9571c411a26d900b1d3883a65fcaa6 (patch)
tree8ae0d1b194e9773a958d291b16dc49b79301b98e
parent6995d11ce06ac3ba6ab0fabafd7b0f5b7be8459b (diff)
downloadnginx-letsencrypt-c3a14bb70c9571c411a26d900b1d3883a65fcaa6.tar.gz
nginx-letsencrypt-c3a14bb70c9571c411a26d900b1d3883a65fcaa6.tar.bz2
nginx-letsencrypt-c3a14bb70c9571c411a26d900b1d3883a65fcaa6.zip
Remove email from script
-rw-r--r--README.md4
-rwxr-xr-xnginx-letsencrypt3
2 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 8891655..2ebb898 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,10 @@ Given the following server block configuration in
Running `nginx-letsencrypt` will issue certificates for
"foo.example.org" and "bar.example.com".
+## Notes
+nginx-letsencrypt is a thin wrapper around certbot. It will read
+/etc/letsencrypt/cli.ini for settings such as email.
+
## Copying
This project is released under the terms of the GPL license. See
LICENSE for details.
diff --git a/nginx-letsencrypt b/nginx-letsencrypt
index cb929c9..4bbb88d 100755
--- a/nginx-letsencrypt
+++ b/nginx-letsencrypt
@@ -12,8 +12,6 @@
# https://github.com/certbot/certbot/issues/3396
set -o errexit
-email="jakob@odersky.com"
-
extra_flags=()
if [ "$1" = --test ]; then
extra_flags+=("--test-cert")
@@ -51,7 +49,6 @@ mkdir --parents /var/www/letsencrypt
certbot certonly "${extra_flags[@]}" \
--noninteractive \
--agree-tos \
- --email "$email" \
--cert-name nginx \
--webroot --webroot-path /var/www/letsencrypt \
--pre-hook "sh -c '(openssl x509 -in /etc/letsencrypt/live/nginx/fullchain.pem -noout -text) | grep --quiet letsencrypt || rm -r /etc/letsencrypt/live/nginx'" \