diff deploy/any/run-cron-scripts.sh @ 1607:1c904260787b deploy

Minor tweaks & cron pre-run
author Chris Cannam
date Fri, 25 Aug 2017 16:00:16 +0100
parents
children 44f001af7f6a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy/any/run-cron-scripts.sh	Fri Aug 25 16:00:16 2017 +0100
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -e
+
+cd /var/www/code
+
+for t in minutely hourly daily monthly; do
+    for s in deploy/config/cron.$t/[0-9]* ; do
+        name=$(basename $s)
+        actual="/etc/cron.$t/$name"
+        echo "Running cron script $actual..."
+        "$actual"
+    done
+done