diff --git a/README.md b/README.md index d06044d..18ac2c5 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,10 @@ Added support for nginx webserver, based on official nginx image - change renew_cert.sh file name for run-parts +### 1.1.5 + +- update renew_cert.sh for periodic renew + ## Kubernetes See https://code.ungleich.ch/ungleich-public/ungleich-k8s/. diff --git a/renew_cert.sh b/renew_cert.sh index d7e6148..a9e079e 100755 --- a/renew_cert.sh +++ b/renew_cert.sh @@ -2,9 +2,10 @@ if [ "$NO_NGINX" ]; then /usr/bin/certbot renew --standalone +elif [ -n "`grep -r standalone /etc/letsencrypt/renewal`" ]; then + /usr/bin/certbot renew --force-renew --webroot --webroot-path /www_http else /usr/bin/certbot renew --webroot --webroot-path /www_http - fi # Correct permissions if not told otherwise