* chore: Remove notify-expirations from bin/weekly * chore: Remove idindex_update from bin/hourly * chore: Remove rfc-editor-index-updates from bin/daily * chore: Remove rfc-editor-index-updates from bin/every15m * chore: Remove celerized tasks from bin/daily * ietf/bin/expire-ids * ietf/manage.py send_reminders * ietf/manage.py fetch_meeting_attendance * chore: Remove send-scheduled-mail from every15m Leaves an empty shell of a script... * chore: Remove iana-*-updates from bin/hourly
41 lines
1.1 KiB
Bash
Executable file
41 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Hourly datatracker jobs
|
|
#
|
|
# 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
|
|
|
|
DTDIR=/a/www/ietf-datatracker/web
|
|
cd $DTDIR/
|
|
|
|
# Set up the virtual environment
|
|
source $DTDIR/env/bin/activate
|
|
|
|
logger -p user.info -t cron "Running $DTDIR/bin/hourly"
|
|
|
|
# Generate some static files
|
|
ID=/a/ietfdata/doc/draft/repository
|
|
DERIVED=/a/ietfdata/derived
|
|
DOWNLOAD=/a/www/www6s/download
|
|
|
|
$DTDIR/ietf/manage.py generate_idnits2_rfc_status
|
|
$DTDIR/ietf/manage.py generate_idnits2_rfcs_obsoleted
|
|
|
|
CHARTER=/a/www/ietf-ftp/charter
|
|
wget -q https://datatracker.ietf.org/wg/1wg-charters-by-acronym.txt -O $CHARTER/1wg-charters-by-acronym.txt
|
|
wget -q https://datatracker.ietf.org/wg/1wg-charters.txt -O $CHARTER/1wg-charters.txt
|
|
|
|
# Regenerate the last week of bibxml-ids
|
|
$DTDIR/ietf/manage.py generate_draft_bibxml_files
|
|
|
|
# Create and update group wikis
|
|
#$DTDIR/ietf/manage.py create_group_wikis
|
|
|
|
# exit 0
|