On 16/04/21 1:32 am, Dan Ritter wrote:
Last step: create a cron job to run once a week that does
this:
certbot renew && \
cat /etc/letsencrypt/live/eyeblinkuniverse.com/privkey.pem \
/etc/letsencrypt/live/eyeblinkuniverse.com/cert.pem > \
/etc/letsencrypt/live/eyeblinkuniverse/merged.pem && \
service lighttpd restart
Doesn't the certbot package create a cronjob/timer for you?
And I'd probably put the merge in a deploy hook, rather than modifying
the cronjob and/or systemd timer.
Not to say the above won't work, of course - except that if you create
or modify the cronjob without touching the systemd timer (and you're
using systemd), you might get unexpected results.
And I haven't tested my thoughts :-)
Richard