Mercurial > hg > soundsoftware-site
diff deploy/any/run-cron-scripts.sh @ 1614:96bcc0ebd102 live
Merge from branch deploy
author | Chris Cannam |
---|---|
date | Tue, 05 Sep 2017 11:19:50 +0100 |
parents | 1c904260787b |
children | 44f001af7f6a |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deploy/any/run-cron-scripts.sh Tue Sep 05 11:19:50 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