Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
Metrics
tor-check
Commits
742c6841
Verified
Commit
742c6841
authored
May 10, 2022
by
Georg Koppen
Browse files
Update cpexit.sh script with code we run on check-01
Closes:
#40009
.
parent
2df5a40b
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/cpexits.sh
View file @
742c6841
#!/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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment