Skip to content

Commit cf56beb

Browse files
committed
Cronjob script changes pulled from the production server after the switch to python 3.
- Legacy-Id: 17326
1 parent fa94277 commit cf56beb

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

bin/daily

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@
44
#
55
# This script is expected to be triggered by cron from
66
# /etc/cron.d/datatracker
7+
export LANG=en_US.UTF-8
8+
export PYTHONIOENCODING=utf-8
79

810
# Make sure we stop if something goes wrong:
911
program=${0##*/}
1012
trap 'echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR
1113

12-
# Run the hourly jobs first
13-
$DTDIR/bin/hourly
14-
1514
# Datatracker directory
1615
DTDIR=/a/www/ietf-datatracker/web
1716
cd $DTDIR/
1817

1918
logger -p user.info -t cron "Running $DTDIR/bin/daily"
2019

20+
# Run the hourly jobs first
21+
$DTDIR/bin/hourly
22+
2123
# Set up the virtual environment
2224
source $DTDIR/env/bin/activate
2325

bin/hourly

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# This script is expected to be triggered by cron from
66
# /etc/cron.d/datatracker
7+
export LANG=en_US.UTF-8
8+
export PYTHONIOENCODING=utf-8
79

810
# Make sure we stop if something goes wrong:
911
program=${0##*/}
@@ -70,6 +72,6 @@ mv $TMPFILE6 $DOWNLOAD/id-abstract.txt
7072
mv $TMPFILE7 $ID/all_id2.txt
7173

7274
# Create and update group wikis
73-
$DTDIR/ietf/manage.py create_group_wikis
75+
#$DTDIR/ietf/manage.py create_group_wikis
7476

7577
# exit 0

bin/monthly

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# This script is expected to be triggered by cron from
66
# /etc/cron.d/datatracker
7+
export LANG=en_US.UTF-8
8+
export PYTHONIOENCODING=utf-8
79

810
DTDIR=/a/www/ietf-datatracker/web
911
cd $DTDIR/

bin/weekly

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# This script is expected to be triggered by cron from
66
# /etc/cron.d/datatracker
7+
export LANG=en_US.UTF-8
8+
export PYTHONIOENCODING=utf-8
79

810
DTDIR=/a/www/ietf-datatracker/web
911
cd $DTDIR/

0 commit comments

Comments
 (0)