[ungleich-certbot] update renew_cert.sh for Task#13204
This commit is contained in:
parent
217b8c2e95
commit
a6af2b5f55
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
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
|
elif [ -n "`grep -r standalone /etc/letsencrypt/renewal`" ]; then
|
||||||
|
/usr/bin/certbot renew --standalone
|
||||||
/usr/bin/certbot renew --force-renew --webroot --webroot-path /www_http
|
/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
|
||||||
|
@ -17,4 +18,4 @@ fi
|
||||||
# Reload certs
|
# Reload certs
|
||||||
pkill -1 nginx
|
pkill -1 nginx
|
||||||
|
|
||||||
echo "Last renew: $(date)" > /tmp/last_renew
|
echo "Last renew: $(date)" > /tmp/last_renew
|
Loading…
Reference in a new issue