Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS instructions cron command missing certbot #753

Open
robske110 opened this issue Jan 10, 2022 · 2 comments
Open

macOS instructions cron command missing certbot #753

robske110 opened this issue Jan 10, 2022 · 2 comments
Assignees

Comments

@robske110
Copy link

$(command -v certbot) is missing from the suggested command. (Was introduced in b2682d6)
Picture from https://certbot.eff.org/instructions?ws=apache&os=osx :
image

If I run the site locally (clone this repository and run the docker compose setup), the command is displayed correctly.
image

@alexzorin
Copy link
Collaborator

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

@alexzorin
Copy link
Collaborator

@zoracon it looks like the website was updated with new instructions, but they are not quite right yet.

  1. The $(command -v certbot) part is necessary because the certbot binary is missing from root's PATH, if installed via Homebrew. It appears to have been dropped.
  2. python is not necessarily available in macOS. On my system, only python3 is available. Potentially, we will want to replace python 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants