Closed mcdado closed 4 years ago
Hi @mcdado ! Thank you for pointing this out, I wasn't aware of this!
If I understand correctly then, the following three lines:
sudo add-apt-repository ppa:certbot/certbot -y
sudo apt-get update
sudo apt-get install python-certbot-nginx -y
should be replaced by merely sudo apt-get install python-certbot-nginx -y
And then I should just get rid of the crontab entry. Did I understand correctly? If so, I'll amend the document.
Thank you!
Yes, correct. The certbot
command if launched by itself prompts for the plugin to be used and whether it should “install” the configuration, which means adding the configuration in the sites-enabled conf file. Otherwise you’d have to add them manually.
Just amended the documentation. I still left a note about adding the ppa for certbot for old versions of ubuntu (but removed altogether the cron entry). Thank you for the feedback, it's much appreciated!
On any current Ubuntu/Debian release, this is unnecessary both because the package is already available (python-certbot-nginx for 18.04) and because certbot automatically adds a systemd timer unit, which also randomizes the renewal time in the 12 hour window to avoid renewal congestion:
/lib/systemd/system/certbot.timer:
/lib/systemd/system/certbot.service: