Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Created July 16, 2018 03:11
Show Gist options
  • Save josephabrahams/1fa05dfc6ffb102a863fa48d05853f29 to your computer and use it in GitHub Desktop.
Save josephabrahams/1fa05dfc6ffb102a863fa48d05853f29 to your computer and use it in GitHub Desktop.

Revisions

  1. josephabrahams renamed this gist Jul 16, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. josephabrahams created this gist Jul 16, 2018.
    12 changes: 12 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # /etc/cron.d/certbot: crontab entries for the certbot package
    #
    # Upstream recommends attempting renewal twice a day
    #
    # Eventually, this will be an opportunity to validate certificates
    # haven't been revoked, etc. Renewal will only occur if expiration
    # is within 30 days.
    SHELL=/bin/sh
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    AWS_CONFIG_FILE="/root/.aws/config"

    0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot -q renew --dns-route53 --post-hook "nginx -s reload"