jfb
October 19, 2018, 4:45pm
2
My reply through Google Translate - Meine Antwort über Google Übersetzer
Yes. Ja.
Part of the nightly log rotation, flushes the log - Ein Teil der nächtlichen Logarithmusrotation spült den Baumstamm
# Pi-hole: A black hole for Internet advertisements
# (c) 2017 Pi-hole, LLC (https://pi-hole.net)
# Network-wide ad blocking via your own hardware.
#
# Updates ad sources every week
#
# This file is copyright under the latest version of the EUPL.
# Please see LICENSE file for your rights under this license.
#
#
#
# This file is under source-control of the Pi-hole installation and update
# scripts, any changes made to this file will be overwritten when the software
# is updated or re-installed. Please make any changes to the appropriate crontab
# or other cron file snippets.
# Pi-hole: Update the ad sources once a week on Sunday at a random time in the
# early morning. Download any updates from the adlists
# Squash output to log, then splat the log to stdout on error to allow for
# standard crontab job error handling.
This file has been truncated. show original
I found the following in /etc/cron.d/pihole (pihole version 3.2)
# Pi-hole: Grab remote version and branch every 10 minutes
*/10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker
this will execute /opt/pihole/updatecheck.sh EVERY 10 MINUTES
why so frequently, can we change it to once a day without impact on pihole?
pi-hole:development
← pi-hole:tweak/updatechecker
opened 06:04PM - 09 Dec 17 UTC
**By submitting this pull request, I confirm the following:** `{please fill any … appropriate checkboxes, e.g: [X]}`
`{Please ensure that your pull request is for the 'development' branch!}`
- [X] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md), as well as this entire template.
- [X] I have made only one major change in my proposed changes.
- [X] I have commented my proposed changes within the code.
- [X] I have tested my proposed changes, and have included unit tests where possible.
- [X] I am willing to help maintain this change if there are issues with it later.
- [X] I give this submission freely and claim no ownership.
- [X] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [X] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
- [X] I have Signed Off all commits. ([`git commit --signoff`](https://git-scm.com/docs/git-commit#git-commit---signoff))
---
**What does this PR aim to accomplish?:**
Check for local version and branches every 10 minutes, check for remote versions only once a day
**How does this PR accomplish the above?:**
Separate the update check into a `remote` and a `local` part
**What documentation changes (if any) are needed to support this PR?:**
Has not disappeared. The command still exists but it is not run as a cron script. - Ist nicht verschwunden. Der Befehl ist weiterhin vorhanden, wird jedoch nicht als Cron-Skript ausgeführt.