LetsEncrypt Certbot Renewal for Nextcloud Server
Run Certbot Manually:
certbot renew –renew-hook “service restart apache2”
Run Certbot Automatically:
run crontab -e and paste this line to schedule the renewal daily at 1:11am
It will only restart Apache if the renewal takes place.
11 1 * * * certbot renew –renew-hook “service restart apache2”