Upgrade certbot-auto only, no cert/renew, in Crond

Hi there, any way to only upgrade certbot-auto before run certbot-auto renew?

Reason: I’m still trying to fully automate my renews, but my domains are on CloudFlare. Everytime that certbot-auto updates, I need to reinstall the Cloudflare’s plugin.

So I need to create a bash script, non-interactive (cron job):

/opt/letsencrypt/certbot-auto <---- check if any upgrade
/opt/eff.org/certbot/venv/bin/pip install certbot-dns-cloudflare <— if not installed (pos-upgrade), install
/opt/letsencrypt/certbot-auto renew --post-hook “/foo/my-jobs-after-renewed”

Any tips are appreciated.

Hi @ArvyRogerio

doesn't it work if you use something like

./certbot-auto --version

So Certbot-auto is startet and should do a self check.

1 Like

Ah, works! Very clever! :sweat_smile:

Thanks.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.