From f3056aa14dd7d652b75ca3d7ba8c401f5db1e22c Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 17 Dec 2016 14:39:52 -0500 Subject: [PATCH] new crontab for renewing letsencrypt --- infobase/configuration/cron/letsencrypt_renewal.crontab | 9 +++++++++ scripts/files/lesser.sh | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 infobase/configuration/cron/letsencrypt_renewal.crontab diff --git a/infobase/configuration/cron/letsencrypt_renewal.crontab b/infobase/configuration/cron/letsencrypt_renewal.crontab new file mode 100644 index 00000000..c3acd694 --- /dev/null +++ b/infobase/configuration/cron/letsencrypt_renewal.crontab @@ -0,0 +1,9 @@ + +SHELL=/bin/bash + +# m h dom mon dow command + +#[letsencrypt renewal] +# run the letsencrypt certificate renewal process every 4 hours. +37 */4 * * * letsencrypt renew &>/tmp/letsencrypt_last_run.txt + diff --git a/scripts/files/lesser.sh b/scripts/files/lesser.sh index 346679b4..66b7732e 100644 --- a/scripts/files/lesser.sh +++ b/scripts/files/lesser.sh @@ -11,7 +11,7 @@ # things like simple lists or error output. function lesser() { - code_view_flag="$1" + local code_view_flag="$1" if [ "$code_view_flag" == "-c" ]; then # saw the 'code' flag, which means show the file with source highlighting. shift -- 2.34.1