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

Merge branch 'bug_40009' into 'master'

Update 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/
TORDATA=/srv/tor TORDATA=/srv/
DNSEL=/srv/ DNSEL=/srv/
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/ > $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