Skip to content
Snippets Groups Projects
Commit 9644f324 authored by ale's avatar ale
Browse files

Fix cron script to use "shuf"

parent 4c5399bc
No related branches found
No related tags found
No related merge requests found
Pipeline #49342 passed
#!/bin/sh #!/bin/sh
period=${CURATOR_CRON_PERIOD_SECS:-86400} period=${CURATOR_CRON_PERIOD_SECS:-86400}
offset=$(printf '%d' 0x$(head -c 2 /dev/urandom | xxd -p)) offset=$(shuf -i 0-${period} -n 1)
offset=$(( $offset % $period ))
sleep $offset sleep $offset
while true; do while true; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment