aports/testing/pihole/pihole-update-gravity.crond
2025-05-12 19:10:20 +00:00

7 lines
227 B
Bash

#!/bin/ash
# Sleep for a random amount of time, up to 2 minutes, to avoid piling on
# update servers
sleep $((RANDOM % 120))
su pihole -s /bin/sh -c '/usr/bin/pihole updateGravity >> /var/log/pihole/pihole_updateGravity.log'