Why is there a certbot AND letsencrypt config file in /etc/cron.d/certbot?

  • Hey guys,


    I wondered why there are two cron configs for my openmediavault-letsencrypt plugin. Is letsencrypt using the certbot and therefore dependent on this certbot cron config? Or is this just by accident one of them is redundant?
    I haven't installed the certbot actively.

    Bash: openmediavault-letsencrypt
    @monthly root omv-rpc "LetsEncrypt" "generateCertificate" "{\"command\":\"renew\"}" >/dev/null 2>&1
    Bash: certbot
    0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew

    Hopefully someone knows!

    cpu Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    omv 6.9.13-1 (Shaitan)

    kernel 6.1.0-0.deb11.11-amd64

    • Offizieller Beitrag

    Is letsencrypt using the certbot and therefore dependent on this certbot cron config? Or is this just by accident one of them is redundant?

    Yes, the plugin uses certbot. The first cron job is added by the plugin to renew your cert. I don't know where the second one came from but it won't do everything needed for OMV to use the cert.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Understood. As I only installed the omv-letsencrypt plugin, I will delete the /etc/cron.d/certbot file. Maybe it got installed with certbot?


    Thank you! :)

    cpu Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    omv 6.9.13-1 (Shaitan)

    kernel 6.1.0-0.deb11.11-amd64

    • Offizieller Beitrag

    Maybe it got installed with certbot?

    That cronjob is in the newer certbot package. It doesn't hurt to leave it especially since it will be added back when upgrading certbot.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!