forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaily
More file actions
executable file
·36 lines (26 loc) · 973 Bytes
/
daily
File metadata and controls
executable file
·36 lines (26 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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/
# 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"
# Set up the virtual environment
source $DTDIR/bin/activate
# Populate the yang repositories
$DTDIR/ietf/manage.py populate_yang_model_dirs
# Expire internet drafts
# Enable when removed from /a/www/ietf-datatracker/scripts/Cron-runner:
#$DTDIR/ietf/bin/expire-ids
# Expire last calls
# Enable when removed from /a/www/ietf-datatracker/scripts/Cron-runner:
#$DTDIR/ietf/bin/expire-last-calls
# Run an extended version of the rfc editor update, to catch changes
# with backdated timestamps
# Enable when removed from /a/www/ietf-datatracker/scripts/Cron-runner:
#$DTDIR/ietf/bin/rfc-editor-index-updates -d 1969-01-01