diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-23 15:02:40 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-11-23 15:02:40 (GMT) |
commit | 175a0ba0da8cee624b6857515f9c447a5da90331 (patch) | |
tree | 2aa5d9575aa07ae332467b4ae2331d2fdc6fbe3b | |
parent | f9f75bbc0c2310651cc68c5afd5f7d097f785a33 (diff) |
Do not parse apache logs for two days
-rwxr-xr-x | aslo/cron/daily | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/aslo/cron/daily b/aslo/cron/daily index 03dec67..46efe03 100755 --- a/aslo/cron/daily +++ b/aslo/cron/daily @@ -4,16 +4,16 @@ root=$(dirname $(dirname $(dirname $(readlink --canonicalize-missing $0)))) cd $root/bin -for time in now yesterday; do - for type in downloads updatepings; do - php -f parse_logs/parse_logs.php \ - logs=$root/data/ \ - temp=/tmp \ - type=$type \ - date=$(date --date=$time +%Y%m%d) \ - geo=US v=v - done +for type in downloads updatepings; do + php -f parse_logs/parse_logs.php \ + logs=$root/data/ \ + temp=/tmp \ + type=$type \ + date=$(date --date=yesterday +%Y%m%d) \ + geo=US v=v +done +for time in -2day -1day now; do date=$(date +%F -d $time) php -f maintenance.php weekly $date php -f maintenance.php global_stats $date @@ -24,7 +24,7 @@ done php -f maintenance.php total php -f maintenance.php ADU php -f maintenance.php gc -#php -f maintenance.php publish_files +php -f maintenance.php publish_files php -f maintenance.php reviews php -f maintenance.php user_ratings php -f maintenance.php ratings |