Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Collector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Legacy
gitolite
user
iwakeh
Collector
Commits
feff68f7
Commit
feff68f7
authored
8 years ago
by
iwakeh
Committed by
Karsten Loesing
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added shell-script for correcting exit-list annotations.
parent
7752b6d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/fix-exitlists-annotation.sh
+45
-0
45 additions, 0 deletions
src/main/resources/fix-exitlists-annotation.sh
with
45 additions
and
0 deletions
src/main/resources/fix-exitlists-annotation.sh
0 → 100755
+
45
−
0
View file @
feff68f7
#!/bin/bash
#
# Only for upgrading from 1.1.0 or 1.1.1!!!
#
# Script for correcting exit-list annotations.
# See task-21195 for details.
# Replaces 'torperf' with 'tordnsel' in files
# and archives.
#
#####
#
# Please enter absolute paths below.
#
# As in collector.properties
RECENT
=
OUT
=
ARCHIVE
=
#
# temporary path to use
TEMP
=
function
fix
()
{
echo
"----> Operating on
$1
..."
find
$1
/
$2
/
-type
f
-exec
sed
-i
s/torperf/tordnsel/
{}
\;
echo
"---->
$1
done."
}
echo
"-> Starting to fix exit-lists ..."
fix
$OUT
"exit-lists"
fix
$RECENT
"exit-lists"
for
ym
in
2016-10 2016-11 2016-12 2017-01
;
do
cd
$TEMP
;
ARC
=
"
$ARCHIVE
/exit-lists/exit-list-
$ym
.tar.xz"
echo
"--> Operating on
$ARC
..."
tar
xf
$ARC
;
fix
$TEMP
exit-list-
$ym
mv
$ARC
$ARC
-old
;
tar
--remove-files
-cf
exit-list-
$ym
.tar exit-list-
$ym
xz
-9e
exit-list-
$ym
.tar
mv
$TEMP
/exit-list-
$ym
.tar.xz
$ARC
echo
"-->
$ARC
is done."
done
;
echo
"-> Done. Please verify the results and remove
$ARCHIVE
/*.tar.xz-old files."
exit
0
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment