Mercurial > hg > soundsoftware-site
annotate 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 |
rev | line source |
---|---|
Chris@1607 | 1 #!/bin/bash |
Chris@1607 | 2 |
Chris@1607 | 3 set -e |
Chris@1607 | 4 |
Chris@1607 | 5 cd /var/www/code |
Chris@1607 | 6 |
Chris@1607 | 7 for t in minutely hourly daily monthly; do |
Chris@1607 | 8 for s in deploy/config/cron.$t/[0-9]* ; do |
Chris@1607 | 9 name=$(basename $s) |
Chris@1607 | 10 actual="/etc/cron.$t/$name" |
Chris@1607 | 11 echo "Running cron script $actual..." |
Chris@1607 | 12 "$actual" |
Chris@1607 | 13 done |
Chris@1607 | 14 done |