Commit 0a36388c authored by jvoisin's avatar jvoisin Committed by intrigeri
Browse files

Use bash builtin instead of perl to sleep a random amount of time in the mirror's crontab

Some distribution, like Alpine, don't come with perl installed.
parent c6d6836c
......@@ -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 mirrors.rsync.tails.boum.org::amnesia-archive /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 mirrors.rsync.tails.boum.org::amnesia-archive /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