datatracker/bin/daily
Henrik Levkowetz 32990c027f Make daily and hourly scripts executable
- Legacy-Id: 11194
2016-05-15 16:46:20 +00:00

31 lines
674 B
Bash
Executable file

#!/bin/bash
# Nightly datatracker jobs.
#
# 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
# Run the hourly jobs first
$DTDIR/bin/hourly
# Populate the yang repositories
$DTDIR/ietf/manage.py populate_yang_model_dirs
# Expire internet drafts
$DTDIR/ietf/bin/expire-ids
# Expire last calls
$DTDIR/ietf/bin/expire-last-calls
# Run an extended version of the rfc editor update, to catch changes
# with backdated timestamps
$DTDIR/ietf/bin/rfc-editor-index-updates -d 1969-01-01