Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Last active December 19, 2019 15:18
Show Gist options
  • Save recursivecodes/d299a590aec4221efc31cc9aa9de8e23 to your computer and use it in GitHub Desktop.
Save recursivecodes/d299a590aec4221efc31cc9aa9de8e23 to your computer and use it in GitHub Desktop.
renew-hooks.sh
echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && /usr/local/bin/certbot-auto renew --pre-hook 'node-red-stop' --post-hook 'node-red-start'" | 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