Commit 771b3b7c authored by intrigeri's avatar intrigeri
Browse files

Merge branch 'patch-1' into 'master'

Don't rely on perl to sleep a random amount of time in the mirror's crontab

See merge request !19
parents cf95a115 0a36388c
......@@ -197,7 +197,7 @@ Use `cron` or equivalent to schedule the same `rsync` command
as above. For example, you can create a file in `/etc/cron.d/` with
this content:
0 * * * * root sleep $(perl -E 'print int(rand(2400))') && flock -n /var/run/lock/tails-mirror-rsync rsync -rt --delete /var/www/YOUR_PATH/
0 * * * * root sleep $(shuf --input-range=0-2400 --head-count=1) && flock -n /var/run/lock/tails-mirror-rsync rsync -rt --delete /var/www/YOUR_PATH/
You can now [[ask for your mirror to be added to the pool|mirror#http-pool]].
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