File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# This script is expected to be triggered by cron from
66# /etc/cron.d/datatracker
77
8+ # Make sure we stop if something goes wrong:
9+ trap ' echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR
10+
811# Run the hourly jobs first
912$DTDIR /bin/hourly
1013
@@ -22,8 +25,9 @@ source $DTDIR/env/bin/activate
2225$DTDIR /ietf/manage.py update_external_command_info
2326
2427# Get IANA-registered yang models
25- YANG_IANA_DIR=$( python -c ' import ietf.settings; print ietf.settings.SUBMIT_YANG_IANA_MODEL_DIR' )
26- rsync -avzq --delete rsync.ietf.org::iana/yang-parameters/ ${YANG_IANA_DIR%/ } /
28+ # YANG_IANA_DIR=$(python -c 'import ietf.settings; print ietf.settings.SUBMIT_YANG_IANA_MODEL_DIR')
29+ # Hardcode the rsync target to avoid any unwanted deletes:
30+ rsync -avzq --delete rsync.ietf.org::iana/yang-parameters/ /a/www/ietf-ftp/yang/ianamod/
2731
2832# Populate the yang repositories
2933$DTDIR /ietf/manage.py populate_yang_model_dirs -v0
Original file line number Diff line number Diff line change 55# This script is expected to be triggered by cron from
66# /etc/cron.d/datatracker
77
8+ # Make sure we stop if something goes wrong:
9+ program=${0##*/ }
10+ trap ' echo "$program($LINENO): Command failed with error code $? ([$$] $0 $*)"; exit 1' ERR
11+
812DTDIR=/a/www/ietf-datatracker/web
913cd $DTDIR /
1014
You can’t perform that action at this time.
0 commit comments