fix to call once a week instead of daily

This commit is contained in:
Jason Learst 2015-10-15 00:32:23 -04:00
parent dba1df9bf8
commit ceb7903f78

View file

@ -82,9 +82,9 @@ echo "Autoupdate script installation..."
crontab -l > /tmp/mycron
if grep -qi '\<gravity\>' /tmp/mycron
then
echo "Autoupdate already configured"
echo "Autoupdate already configured."
else
echo "0 * * * * sudo /usr/local/bin/gravity.sh" >> /tmp/mycron
echo "@weekly sudo /usr/local/bin/gravity.sh" >> /tmp/mycron
crontab /tmp/mycron
fi
rm /tmp/mycron