From dc385ea0145f3c4b4ccaa5ce3dfc6b37c90344ac Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz <henrik@levkowetz.com> Date: Thu, 16 Jun 2016 19:29:24 +0000 Subject: [PATCH] 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 --- bin/mm_hourly | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/mm_hourly diff --git a/bin/mm_hourly b/bin/mm_hourly new file mode 100755 index 000000000..78af78670 --- /dev/null +++ b/bin/mm_hourly @@ -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