Skip to content

Instantly share code, notes, and snippets.

@kenu
Created February 28, 2022 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenu/68a90b3ae9823a9857a90c39d33ca39f to your computer and use it in GitHub Desktop.
Save kenu/68a90b3ae9823a9857a90c39d33ca39f to your computer and use it in GitHub Desktop.
crontab
echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew" | sudo tee -a /etc/crontab > /dev/null
cat /etc/crontab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment