mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-28 00:53:19 +00:00
fix to call once a week instead of daily
This commit is contained in:
parent
dba1df9bf8
commit
ceb7903f78
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ echo "Autoupdate script installation..."
|
||||||
crontab -l > /tmp/mycron
|
crontab -l > /tmp/mycron
|
||||||
if grep -qi '\<gravity\>' /tmp/mycron
|
if grep -qi '\<gravity\>' /tmp/mycron
|
||||||
then
|
then
|
||||||
echo "Autoupdate already configured"
|
echo "Autoupdate already configured."
|
||||||
else
|
else
|
||||||
echo "0 * * * * sudo /usr/local/bin/gravity.sh" >> /tmp/mycron
|
echo "@weekly sudo /usr/local/bin/gravity.sh" >> /tmp/mycron
|
||||||
crontab /tmp/mycron
|
crontab /tmp/mycron
|
||||||
fi
|
fi
|
||||||
rm /tmp/mycron
|
rm /tmp/mycron
|
||||||
|
|
Loading…
Reference in a new issue