blob: 07ee2e3a502de8ffb38a56b6ca8adde6ffcae486 (
plain)
1
2
3
4
5
|
#!/bin/bash
#renew letsencrypt certificate. it checks if cert need renewal. if not nginx will not stop
# check and renew if required, quietly. if so do it in standalone mode
/usr/bin/certbot renew -q --pre-hook "/usr/bin/systemctl stop nginx" --post-hook "/usr/bin/systemctl start nginx"
|