[ungleich-certbot] update renew_cert.sh for Task#12236

This commit is contained in:
kjg 2024-04-23 20:26:46 +09:00
parent 837887a66c
commit 217b8c2e95
2 changed files with 6 additions and 1 deletions

View file

@ -136,6 +136,10 @@ Added support for nginx webserver, based on official nginx image
- change renew_cert.sh file name for run-parts - change renew_cert.sh file name for run-parts
### 1.1.5
- update renew_cert.sh for periodic renew
## Kubernetes ## Kubernetes
See https://code.ungleich.ch/ungleich-public/ungleich-k8s/. See https://code.ungleich.ch/ungleich-public/ungleich-k8s/.

View file

@ -2,9 +2,10 @@
if [ "$NO_NGINX" ]; then if [ "$NO_NGINX" ]; then
/usr/bin/certbot renew --standalone /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 else
/usr/bin/certbot renew --webroot --webroot-path /www_http /usr/bin/certbot renew --webroot --webroot-path /www_http
fi fi
# Correct permissions if not told otherwise # Correct permissions if not told otherwise