forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmm_hourly
More file actions
executable file
·26 lines (19 loc) · 794 Bytes
/
mm_hourly
File metadata and controls
executable file
·26 lines (19 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Hourly datatracker jobs, run as mailman
#
# This script is expected to be triggered by cron from
# $DTDIR/etc/cron.d/datatracker which should be symlinked from
# /etc/cron.d/
export LANG=en_US.UTF-8
export PYTHONIOENCODING=utf-8
# Make sure we stop if something goes wrong:
program=${0##*/}
trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR
# Note that we're using the last 2.7 release here, not the current release
DTDIR=/a/www/ietf-datatracker/py27
cd $DTDIR/
# Set up the virtual environment
source $DTDIR/env/bin/activate
logger -p user.info -t cron "Running $DTDIR/bin/mm_hourly"
## XXX commented out pending rewrite -- mailman 2 python interface is not available under Python 3
$DTDIR/ietf/manage.py import_mailman_listinfo