From fa49790bbe5a837a6b5c49123b509242e62051db Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 6 Aug 2020 13:34:50 +0000 Subject: [PATCH] Run the mailman cronjobs under Py27 until mailman has been upgraded to version 3.x (running under Py3). - Legacy-Id: 18342 --- bin/mm_hourly | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/mm_hourly b/bin/mm_hourly index a79e362e1..b66c4dfbc 100755 --- a/bin/mm_hourly +++ b/bin/mm_hourly @@ -13,7 +13,8 @@ export PYTHONIOENCODING=utf-8 program=${0##*/} trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR -DTDIR=/a/www/ietf-datatracker/web +# 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 @@ -22,4 +23,4 @@ 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 +$DTDIR/ietf/manage.py import_mailman_listinfo