changeset 1607:1c904260787b deploy

Minor tweaks & cron pre-run
author Chris Cannam
date Fri, 25 Aug 2017 16:00:16 +0100
parents 16325d2ab2dd
children b8e5e9734526
files deploy/any/run-cron-scripts.sh deploy/provision.d/000-system-packages.sh deploy/provision.d/190-reminders.sh
diffstat 3 files changed, 22 insertions(+), 0 deletions(-) [+]
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
--- a/deploy/provision.d/000-system-packages.sh	Fri Aug 25 15:20:53 2017 +0100
+++ b/deploy/provision.d/000-system-packages.sh	Fri Aug 25 16:00:16 2017 +0100
@@ -35,6 +35,7 @@
             libmagickwand-dev \
             libio-socket-ssl-perl \
             logrotate \
+            lynx \
             mercurial \
             mercurial-git \
             openjdk-9-jdk-headless \
--- a/deploy/provision.d/190-reminders.sh	Fri Aug 25 15:20:53 2017 +0100
+++ b/deploy/provision.d/190-reminders.sh	Fri Aug 25 16:00:16 2017 +0100
@@ -13,6 +13,13 @@
     code-ssl.conf for an example HTTPS configuration (you will of
     course need to provide the key/cert files).
 
+*** CRON SCRIPTS
+
+    A number of cron scripts have been installed. It might be no bad
+    thing to prime and test them by running them all once now. Some of
+    the services tested by the smoke test script (below) may depend on
+    their having run. Use deploy/any/run-cron-scripts.sh for this.
+
 *** SMOKE TEST
 
     There is a smoke test script in the deploy/test directory. That