website
website copied to clipboard
macOS instructions cron command missing certbot
$(command -v certbot)
is missing from the suggested command. (Was introduced in https://github.com/certbot/website/commit/b2682d62f7d1e1049ab2a6b094543d451594a6dd)
Picture from https://certbot.eff.org/instructions?ws=apache&os=osx :
If I run the site locally (clone this repository and run the docker compose setup), the command is displayed correctly.
Thank you for reporting this.
The correct contents can be retrieved at https://web.archive.org/web/20211010104605/https://certbot.eff.org/lets-encrypt/osx-apache.
cc @zoracon, I think one for E&D
@zoracon it looks like the website was updated with new instructions, but they are not quite right yet.
- The
$(command -v certbot)
part is necessary because thecertbot
binary is missing fromroot
'sPATH
, if installed via Homebrew. It appears to have been dropped. -
python
is not necessarily available in macOS. On my system, onlypython3
is available. Potentially, we will want to replacepython
with$(command -v python3)
.
So I think ultimately it might look something like:
echo "0 0,12 * * * root $(command -v python3) -c 'import random; import time; time.sleep(random.random() * 3600)' && sudo $(command -v certbot) renew -q" | sudo tee -a /etc/crontab > /dev/null