-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from TheTorProject/fix/log-rotation
Hotfix: Cleanup ooniprobe logrotated files
- Loading branch information
Showing
3 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
# This cronjob has been created to overcome a limitation of ooniprobe log | ||
# rotations. It deletes files modified by the pattern 'ooniprobe.log.*_*' the | ||
# last 6 days for the ${OONI_LOGS} directory | ||
source /etc/ooniprobe/ooniconfig.sh | ||
|
||
find ${OONI_LOGS} -name "ooniprobe.log.*_*" -mtime +6 -type f -delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters