I installed certbot from pip3:
# pip3 freeze|grep -i certbot
certbot==1.5.0
certbot-apache==1.5.0
certbot-dns-digitalocean==1.5.0
I can run certbot from the command line as root, but I configured crontab to run perl -e 'sleep int(rand(1800))' && certbot -q renew
as root twice a week, and I get this error message by email:
/bin/sh: 1: certbot: not found
If I type whereis certbot
at the command line I get this result:
certbot: /usr/local/bin/certbot
Why doesn't certbot run from crontab successfully?
I'm using Ubuntu 18.04.