Added a script to be run hourly by cron as user mailman (in order to have permission to access the mailman databases)

- Legacy-Id: 11392
This commit is contained in:
Henrik Levkowetz 2016-06-16 19:29:24 +00:00
parent 776ed3bdeb
commit dc385ea014

15
bin/mm_hourly Executable file
View file

@ -0,0 +1,15 @@
#!/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/
DTDIR=/a/www/ietf-datatracker/web
cd $DTDIR/
# Set up the virtual environment
source $DTDIR/bin/activate
$DTDIR/ietf/manage.py import_mailman_listinfo