...
Code Block | ||||
---|---|---|---|---|
| ||||
#!/bin/bash ## navigate to directory with ./certbot-auto cd /path/to/certbot-auto ## check if the certificate is expiring soon and renew it if needed sudo ./certbot-auto --config /etc/letsencrypt/configs/certls.test2datim4u.ohieorg.orgconf certonly --renew-hook "/bin/certbot_renewal/update_OpenHIM.sh" -n # -n ensures a noninteractive session # --renew-hook command only fires if a certificate is renewed exit 0 |
...