From cf56beb8cc5dc9d0321f841a2372d5b89007ae00 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Sun, 23 Feb 2020 01:28:16 +0000 Subject: [PATCH] Cronjob script changes pulled from the production server after the switch to python 3. - Legacy-Id: 17326 --- bin/daily | 8 +++++--- bin/hourly | 4 +++- bin/monthly | 2 ++ bin/weekly | 2 ++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/bin/daily b/bin/daily index f7384143b..10d59c698 100755 --- a/bin/daily +++ b/bin/daily @@ -4,20 +4,22 @@ # # This script is expected to be triggered by cron from # /etc/cron.d/datatracker +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 -# Run the hourly jobs first -$DTDIR/bin/hourly - # Datatracker directory DTDIR=/a/www/ietf-datatracker/web cd $DTDIR/ logger -p user.info -t cron "Running $DTDIR/bin/daily" +# Run the hourly jobs first +$DTDIR/bin/hourly + # Set up the virtual environment source $DTDIR/env/bin/activate diff --git a/bin/hourly b/bin/hourly index a66d89248..d75f4cabd 100755 --- a/bin/hourly +++ b/bin/hourly @@ -4,6 +4,8 @@ # # This script is expected to be triggered by cron from # /etc/cron.d/datatracker +export LANG=en_US.UTF-8 +export PYTHONIOENCODING=utf-8 # Make sure we stop if something goes wrong: program=${0##*/} @@ -70,6 +72,6 @@ mv $TMPFILE6 $DOWNLOAD/id-abstract.txt mv $TMPFILE7 $ID/all_id2.txt # Create and update group wikis -$DTDIR/ietf/manage.py create_group_wikis +#$DTDIR/ietf/manage.py create_group_wikis # exit 0 diff --git a/bin/monthly b/bin/monthly index 5c15827e1..1d36abc21 100755 --- a/bin/monthly +++ b/bin/monthly @@ -4,6 +4,8 @@ # # This script is expected to be triggered by cron from # /etc/cron.d/datatracker +export LANG=en_US.UTF-8 +export PYTHONIOENCODING=utf-8 DTDIR=/a/www/ietf-datatracker/web cd $DTDIR/ diff --git a/bin/weekly b/bin/weekly index e5ab321fb..8e01c273c 100755 --- a/bin/weekly +++ b/bin/weekly @@ -4,6 +4,8 @@ # # This script is expected to be triggered by cron from # /etc/cron.d/datatracker +export LANG=en_US.UTF-8 +export PYTHONIOENCODING=utf-8 DTDIR=/a/www/ietf-datatracker/web cd $DTDIR/