new crontab for renewing letsencrypt
authorChris Koeritz <fred@gruntose.com>
Sat, 17 Dec 2016 19:39:52 +0000 (14:39 -0500)
committerChris Koeritz <fred@gruntose.com>
Sat, 17 Dec 2016 19:39:52 +0000 (14:39 -0500)
infobase/configuration/cron/letsencrypt_renewal.crontab [new file with mode: 0644]
scripts/files/lesser.sh

diff --git a/infobase/configuration/cron/letsencrypt_renewal.crontab b/infobase/configuration/cron/letsencrypt_renewal.crontab
new file mode 100644 (file)
index 0000000..c3acd69
--- /dev/null
@@ -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
+
index 346679b4fec741fd48ede5e4131daa558db31685..66b7732ef2bd5e4529c3a38db77c2cd618db15b8 100644 (file)
@@ -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