Verified Commit 742c6841 authored by Georg Koppen's avatar Georg Koppen
Browse files

Update cpexit.sh script with code we run on check-01

Closes: #40009.
parent 2df5a40b
#!/usr/bin/env bash
CHECK=/opt/check
TORDATA=/srv/tor
DNSEL=/srv/tordnsel.torproject.org/state
CHECK=/srv/check.torproject.org/check
TORDATA=/srv/check.torproject.org/tordata
DNSEL=/srv/tordnsel.torproject.org
NOW=$(date +"%Y-%m-%d-%H-%M-%S")
find $CHECK/data/exit-lists -type f -mtime +1 -delete
cat $DNSEL/exit-addresses $DNSEL/exit-addresses.new > $CHECK/data/exit-lists/$NOW
cat $DNSEL/lists/latest > $CHECK/data/exit-lists/$NOW
find $CHECK/data/consensuses -type f -mtime +1 -delete
cp $TORDATA/cached-consensus $CHECK/data/consensuses/$NOW-consensus
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment