Last active
December 19, 2019 15:18
-
-
Save recursivecodes/d299a590aec4221efc31cc9aa9de8e23 to your computer and use it in GitHub Desktop.
renew-hooks.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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