From 4e02c62bd7568f02687c690770d2beddacd3342e Mon Sep 17 00:00:00 2001 From: Brielle Date: Thu, 31 Mar 2016 14:49:20 -0600 Subject: [PATCH] Add example weekly cron script --- cron/renew-ssl-weekly.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cron/renew-ssl-weekly.sh diff --git a/cron/renew-ssl-weekly.sh b/cron/renew-ssl-weekly.sh new file mode 100644 index 0000000..9647bf8 --- /dev/null +++ b/cron/renew-ssl-weekly.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Type of auth method you want to use - overrides any stored auth methods +# in the account. If you don't want to override them, set +# AUTHMETHOD="" +AUTHMETHOD="-a webroot --webroot-path /var/www/letsencrypt-root/" + +/usr/src/letsencrypt/letsencrypt-auto \ + --server https://acme-v01.api.letsencrypt.org/directory \ + --agree-tos \ + ${AUTHMETHOD} \ + -n \ + renew + + # Put other commands you need to run below here + # like restarting apache, copying cert files, etc. +/etc/init.d/apache2 restart &>/dev/null