#!/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'
