Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save onkar-indellient/81d08c882cad3685e4ebc6d356aff1a4 to your computer and use it in GitHub Desktop.
Save onkar-indellient/81d08c882cad3685e4ebc6d356aff1a4 to your computer and use it in GitHub Desktop.
4_renew_certificate_cron_job.config
files:
/tmp/renew_ssl_cron:
mode: "000777"
owner: root
group: root
content: |
0 3,15 * * * certbot renew --no-self-upgrade
container_commands:
1_create_cert_crontab:
command: "sudo crontab /tmp/renew_ssl_cron"
2_delete_cronjob_file:
command: "sudo rm /tmp/renew_ssl_cron"
ignoreErrors: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment