Commit c59d0b43 authored by Hiro's avatar Hiro 🏄
Browse files

Merge branch 'bug_40009' into 'master'

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

Closes #40009

See merge request !5
parents 3455845f 742c6841
#!/usr/bin/env bash #!/usr/bin/env bash
CHECK=/opt/check CHECK=/srv/check.torproject.org/check
TORDATA=/srv/tor TORDATA=/srv/check.torproject.org/tordata
DNSEL=/srv/tordnsel.torproject.org/state DNSEL=/srv/tordnsel.torproject.org
NOW=$(date +"%Y-%m-%d-%H-%M-%S") NOW=$(date +"%Y-%m-%d-%H-%M-%S")
find $CHECK/data/exit-lists -type f -mtime +1 -delete 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 find $CHECK/data/consensuses -type f -mtime +1 -delete
cp $TORDATA/cached-consensus $CHECK/data/consensuses/$NOW-consensus 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