]> git.openstreetmap.org Git - osqa.git/blob - cron/once_award_badges
python 2.4 compatibility fixes and fix on score counter
[osqa.git] / cron / once_award_badges
1 #!/bin/sh
2 PYTHONPATH=/path/to/dir_above_osqa_site
3 export PYTHONPATH
4 PROJECT_ROOT=$PYTHONPATH/osqa_site
5 python manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
6
7
8 #!/bin/sh
9 PYTHONPATH=/usr/local/sites/osqa_production
10 export PYTHONPATH
11 PROJECT_ROOT=$PYTHONPATH/robofaqs
12 python $PROJECT_ROOT/manage.py once_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
13 python $PROJECT_ROOT/manage.py multi_award_badges >> $PROJECT_ROOT/log/cron_badges.log 2>&1
14 python $PROJECT_ROOT/manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_email.log 2>&1