To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / deploy / any / run-cron-scripts.sh @ 1612:2496b955f638

History | View | Annotate | Download (271 Bytes)

1
#!/bin/bash
2

    
3
set -e
4

    
5
cd /var/www/code
6

    
7
for t in minutely hourly daily monthly; do
8
    for s in deploy/config/cron.$t/[0-9]* ; do
9
        name=$(basename $s)
10
        actual="/etc/cron.$t/$name"
11
        echo "Running cron script $actual..."
12
        "$actual"
13
    done
14
done